Create a heatmap layer
✓ Published0🌍 Public
WWill Carter
Last edited Dec 12, 2019
Created on Dec 12, 2019
This example creates an interactive heatmap layer on top of a Mapbox dark basemap, using Mapbox GL JS. It visualizes point data from a GeoJSON source, showing earthquake or seismic intensities across the U.S. The heatmap uses color gradients and zoom-dependent intensity, radius, and opacity, transitioning to a circle layer at higher zoom levels. The circles also encode magnitude via a color scale, with a white stroke. The code loads the GeoJSON data from a remote gist URL and applies heatmap and circle layers with interpolation functions.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed