Skip to content

Commit

Permalink
[vis] Bound tilemap zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Jul 13, 2016
1 parent c3d203f commit 3c1339e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/vislib/visualizations/_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};

Expand Down

0 comments on commit 3c1339e

Please sign in to comment.