Skip to content

Commit

Permalink
Correctly check for enabled wms to determine zoom
Browse files Browse the repository at this point in the history
Without this defensive check, a JS console error is thrown whenever wms
is not configured for a map visualization.
  • Loading branch information
epixa committed Jul 15, 2016
1 parent 6494caa commit c74041c
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 @@ -278,7 +278,7 @@ export default function MapFactory(Private, tilemap) {
TileMapMap.prototype._createMap = function (mapOptions) {
if (this.map) this.destroy();

if (this._attr.wms.enabled) {
if (this._attr.wms && this._attr.wms.enabled) {
_.assign(mapOptions, {
minZoom: 1,
maxZoom: 18
Expand Down

0 comments on commit c74041c

Please sign in to comment.