Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rnmapbox/maps/llms.txt
Use this file to discover all available pages before exploring further.
Heatmap Layer
Visualize data density using heatmaps:Heatmap layers are ideal for visualizing point density. They’re GPU-accelerated and can handle large datasets efficiently.
Clustering with Custom Properties
Cluster points and aggregate custom properties:Data-Driven Circle Colors
Style circles based on feature properties:Choropleth Map
Create a choropleth map with data-driven fill colors:3D Extrusion
Create 3D buildings based on height data:Filter Layers
Filter features based on properties:Performance Tips
- Large Datasets
- Vector Tiles
- Expressions
For datasets with thousands of points:
- Enable clustering to reduce render load
- Set appropriate
clusterRadiusandclusterMaxZoomLevel - Use GPU-powered expressions for styling
Interaction
Make your visualizations interactive:Heatmap Properties
| Property | Description | Example |
|---|---|---|
heatmapColor | Color gradient | ['interpolate', ['linear'], ['heatmap-density'], 0, 'blue', 1, 'red'] |
heatmapWeight | Weight of each point | ['interpolate', ['linear'], ['get', 'value'], 0, 0, 100, 1] |
heatmapIntensity | Overall intensity | ['interpolate', ['linear'], ['zoom'], 0, 1, 9, 3] |
heatmapRadius | Radius of influence | ['interpolate', ['linear'], ['zoom'], 0, 2, 9, 20] |
heatmapOpacity | Layer opacity | 0.8 |
Best Practices
For real-time data updates, prefer updating the
shape prop on ShapeSource rather than unmounting and remounting the entire layer structure.Source Code
View the complete examples on GitHub:Next Steps
Custom Styles
Learn advanced styling techniques
Overview
Explore all available examples