View a markdown version of this page

Example: Draw clustered points - Amazon Location Service

Example: Draw clustered points

Map showing earthquake locations across the Pacific Ocean with varying circle sizes indicating magnitude.

Using USGS earthquake data, this code example shows how to draw points that cluster together when they are close together on the map. Uses MapLibre, Node.js, React, Amplify, and JavaScript.

Samples GitHub link: Interactive map with clusters of points