QueryRenderedFeatures on GeoJSON source #254
-
|
Hi, I have a similar problem as the one raised under #207. My MapLibre component has a GeoJSON source I have a function to query only the data that are part of this GeoJSON, hence narrowing down all layers to only "bookmarks" And nothing is output. I'm not sure to understand the answer from #207 though. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
There's a difference in MapLibre between sources and layers. The source is the data and a layer is a way to render it.
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you! I got confused - I confirm it's working well! |
Beta Was this translation helpful? Give feedback.
There's a difference in MapLibre between sources and layers. The source is the data and a layer is a way to render it.
bookmarksis the source, not the layer in this case. If you putid="bookmarks"on the SymbolLayer then you should get the behavior you're looking for.