StyleImport
Use StyleImport to set configuration options on the Mapbox Standard style. V11 only. The Mapbox Standard style is a new default style that provides a clean, modern basemap with extensive configuration options. StyleImport allows you to customize various aspects of this style, such as the color scheme, font, and lighting.Import
Basic Usage
Props
id
ID of the style import. For the Mapbox Standard style, this is typically
"basemap".existing
Must always be set to
true. This indicates that you’re modifying an existing style import rather than creating a new one.config
A dictionary of configuration options for the style import. The available options depend on the style being imported.For the Mapbox Standard style, common configuration options include:
colorScheme- The color scheme:"light","dark","dusk", or"dawn"font- The font family for labelslightPreset- Lighting preset:"day","night","dusk", or"dawn"showPlaceLabels- Show or hide place labels:"true"or"false"showRoadLabels- Show or hide road labels:"true"or"false"showPointOfInterestLabels- Show or hide POI labels:"true"or"false"showTransitLabels- Show or hide transit labels:"true"or"false"
Examples
- Dark Theme
- Custom Font
- Minimal Labels
- Dynamic Configuration
Additional Resources
Related Components
- MapView - The map container
- Light - Configure lighting for 3D features
- Atmosphere - Configure atmospheric effects