Back to all examples
Places clustering playground
Tune how charging and fuel stations cluster, how the count badge looks and what it counts
Nearby stations merge into counted clusters while zoomed out, a click on one zooms in until it splits, and every panel change redraws them on the places already shown.
- The
pin-clusteredmarker type ofPlacesModulesorts clusters for you. A cluster of one category keeps its icon with a corner badge, and a mixed one gets a centred count. - A cluster isn’t a place, so it reaches the module-wide
events, whereevents.wherepicks it out by itsclusterproperty. clustersets the clustering options and the badge look in one config, instead of four layer overrides. Itssource.propertiessums a number onto each cluster for the badge to print, whichextraFeaturePropsattaches to each place.- The panel starts at the defaults that
placesKnobCataloguepublishes, which you can read with no map loaded.
Related examples
EV charging stations search
Interactive exploration of EV charging stations, their connectors and charging points
Playground
Search and Geocoding
Places and POIs
Electric Vehicles
Plugins
Web
EV chargers nearby
Fast charging stations near one location, filtered by connector and power, with each station's connectors on click
Getting Started
Electric Vehicles
Search and Geocoding
Places and POIs
Web
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React