diff --git a/src/ui/public/vislib/visualizations/_map.js b/src/ui/public/vislib/visualizations/_map.js index d9c4218ff46b1..a7a1e1eda0726 100644 --- a/src/ui/public/vislib/visualizations/_map.js +++ b/src/ui/public/vislib/visualizations/_map.js @@ -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