maplibre-gl-layer-control-tidop 0.0.1 → 0.0.3

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 CHANGED
@@ -928,7 +928,8 @@ 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.generateFriendlyName(layerId);
931
+ console.log(layer);
932
+ const friendlyName = this.map.getLayoutProperty(layerId, "title");
932
933
  this.state.layerStates[layerId] = {
933
934
  visible: isVisible,
934
935
  opacity,
@@ -963,7 +964,8 @@ class LayerControl {
963
964
  const isVisible = visibility !== "none";
964
965
  const layerType = layer.type;
965
966
  const opacity = getLayerOpacity(this.map, layerId, layerType);
966
- const friendlyName = this.generateFriendlyName(layerId);
967
+ console.log(layer);
968
+ const friendlyName = this.map.getLayoutProperty(layerId, "title");
967
969
  this.state.layerStates[layerId] = {
968
970
  visible: isVisible,
969
971
  opacity,