Feature Request: Support getStyle() method in RNMapbox similar to Web Mapbox GL #3901
vaishnavi-techp
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team 👋,
I’m using @rnmapbox/maps@10.1.33 and noticed that the getStyle() method is not available on the MapView ref, even though it's available in the web-based Mapbox GL JS (map.getStyle()).
This method is useful for dynamically inspecting the map’s layers, sources, and other runtime style metadata — particularly helpful for:
Debugging map behavior
Dynamically enabling/disabling layers
Extracting source-layer or layerId metadata for filtering and querying
Would it be possible to expose the getStyle() method from the native SDKs (both Android and iOS) to the JavaScript bridge?
Beta Was this translation helpful? Give feedback.
All reactions