maplibre-gl-layer-control-tidop 0.0.1 → 0.0.2
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -928,7 +928,7 @@ class LayerControl {
|
|
|
928
928
|
const isVisible = visibility !== "none";
|
|
929
929
|
const layerType = layer.type;
|
|
930
930
|
const opacity = getLayerOpacity(this.map, layerId, layerType);
|
|
931
|
-
const friendlyName = this.
|
|
931
|
+
const friendlyName = this.map.getLayoutProperty(layerId, "name");
|
|
932
932
|
this.state.layerStates[layerId] = {
|
|
933
933
|
visible: isVisible,
|
|
934
934
|
opacity,
|
|
@@ -963,7 +963,7 @@ class LayerControl {
|
|
|
963
963
|
const isVisible = visibility !== "none";
|
|
964
964
|
const layerType = layer.type;
|
|
965
965
|
const opacity = getLayerOpacity(this.map, layerId, layerType);
|
|
966
|
-
const friendlyName = this.
|
|
966
|
+
const friendlyName = this.map.getLayoutProperty(layerId, "name");
|
|
967
967
|
this.state.layerStates[layerId] = {
|
|
968
968
|
visible: isVisible,
|
|
969
969
|
opacity,
|