gis-map-universal 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gismap.umd.js +6 -0
- package/package.json +1 -1
package/gismap.umd.js
CHANGED
|
@@ -267272,6 +267272,12 @@ var CityAreaLayer_component = normalizeComponent(
|
|
|
267272
267272
|
this.map.removeLayer(foundLayer);
|
|
267273
267273
|
this.closePopup();
|
|
267274
267274
|
},
|
|
267275
|
+
setLayerVisibleByName(layerName, visible) {
|
|
267276
|
+
let layer = this.findLayerByName(layerName);
|
|
267277
|
+
if (layer) {
|
|
267278
|
+
layer.setVisible(visible);
|
|
267279
|
+
}
|
|
267280
|
+
},
|
|
267275
267281
|
findLayerByName(layerName) {
|
|
267276
267282
|
let arry = this.map.getLayers().getArray();
|
|
267277
267283
|
let foundLayer = null;
|