From ca5a96838b0679df4697847cc085f5bc858092d1 Mon Sep 17 00:00:00 2001 From: Court Ewing Date: Fri, 15 Jul 2016 17:35:21 -0400 Subject: [PATCH] Remove duplicate wms conditional in tilemap createmap This separation made sense in the original implementation, but it is not necessary in this version. --- src/ui/public/vislib/visualizations/_map.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui/public/vislib/visualizations/_map.js b/src/ui/public/vislib/visualizations/_map.js index a7a1e1eda0726..405d1a1be32e1 100644 --- a/src/ui/public/vislib/visualizations/_map.js +++ b/src/ui/public/vislib/visualizations/_map.js @@ -278,15 +278,12 @@ export default function MapFactory(Private, tilemap) { TileMapMap.prototype._createMap = function (mapOptions) { if (this.map) this.destroy(); + // add map tiles layer, using the mapTiles object settings if (this._attr.wms && this._attr.wms.enabled) { _.assign(mapOptions, { minZoom: 1, maxZoom: 18 }); - } - - // add map tiles layer, using the mapTiles object settings - if (this._attr.wms && this._attr.wms.enabled) { this._tileLayer = L.tileLayer.wms(this._attr.wms.url, this._attr.wms.options); } else { this._tileLayer = L.tileLayer(mapTiles.url, mapTiles.options);