Skip to content

Commit

Permalink
Remove duplicate wms conditional in tilemap createmap
Browse files Browse the repository at this point in the history
This separation made sense in the original implementation, but it is not
necessary in this version.
  • Loading branch information
epixa committed Jul 15, 2016
1 parent c74041c commit ca5a968
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ui/public/vislib/visualizations/_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca5a968

Please sign in to comment.