diff --git a/src/components/MapMaplibreGl.tsx b/src/components/MapMaplibreGl.tsx index dd17b0b4..2e591c55 100644 --- a/src/components/MapMaplibreGl.tsx +++ b/src/components/MapMaplibreGl.tsx @@ -137,8 +137,19 @@ class MapMaplibreGlInternal extends React.Component { + let layerNames = metadata.vector_layers.map((e) => e.id); + + map.style.sourceCaches["source"]._source.vectorLayerIds = layerNames; + console.log("layerNames for inspect:", layerNames); + }); + } } + } componentDidMount() {