maplibre-gl-layer-control-tidop 0.0.3 → 0.0.4
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -964,8 +964,8 @@ class LayerControl {
|
|
|
964
964
|
const isVisible = visibility !== "none";
|
|
965
965
|
const layerType = layer.type;
|
|
966
966
|
const opacity = getLayerOpacity(this.map, layerId, layerType);
|
|
967
|
+
const friendlyName = this.generateFriendlyName(layerId);
|
|
967
968
|
console.log(layer);
|
|
968
|
-
const friendlyName = this.map.getLayoutProperty(layerId, "title");
|
|
969
969
|
this.state.layerStates[layerId] = {
|
|
970
970
|
visible: isVisible,
|
|
971
971
|
opacity,
|