MapLibre GL JS examples
MapLibre GL JS renders vector tiles from a style spec. Use it for self-hosted tiles, 3D terrain and map styles you fully control.
Basic Map
Box Select
Center on Click
Cluster
Custom Control
Data Driven Line
Disable Rotation
Dynamic Style
Features Under Pointer
Fill Extrusion
Filter By Text
Fit Bounds
Fly to
GeoJSON Line
GeoJSON Points
GeoJSON Polygon
Heatmap
Hover Effect
Image Source
Label Collision
Layer Color Buttons
Layer Switch
Layer Visibility
Line Gradient
Line Layer
Live Update
Map Export
Marker
Max Bounds
Measure Distances
Mouse Coordinates
Multi Map Sync
Non Interactive
Path Animation
Performance
Pitch Bearing
Polygon Pattern
Popup
Popup on Click
Popup on Hover
Sky Layer
Symbol Layer
Terrain
Terrain 3D
Toggle Interactions
Vector Tiles
Video Source