runtime styling
Runtime styling allows you to dynamically change your map's style properties in real time, allowing you to customize every aspect of the map’s appearance. This means that every element of the map can be added, removed, and styled at runtime. Runtime styling is available in all products that rely on Mapbox GL.
You can build custom visualizations by accessing your map's individual layers and manipulating them in response to user input or changing context. For example, you can lighten or darken a map based on the time of day, personalize the colors of parks based on user activity, or even change label languages based on user preference.
Related resources:
- Getting started: Layers and runtime styling in mobile apps
- Mapbox Maps SDK for iOS runtime styling documentation
- Mapbox Maps SDK for Android runtime styling documentation
Was this page helpful?