mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[vis] Bound tilemap zoom
This commit is contained in:
parent
c3d203f07b
commit
3c1339e17c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default function MapFactory(Private, tilemap) {
|
|||
this._valueFormatter = params.valueFormatter || _.identity;
|
||||
this._tooltipFormatter = params.tooltipFormatter || _.identity;
|
||||
this._geoJson = _.get(this._chartData, 'geoJson');
|
||||
this._mapZoom = params.zoom || defaultMapZoom;
|
||||
this._mapZoom = Math.max(Math.min(params.zoom || defaultMapZoom, tilemapOptions.maxZoom), tilemapOptions.minZoom);
|
||||
this._mapCenter = params.center || defaultMapCenter;
|
||||
this._attr = params.attr || {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue