

# Example: Draw clustered points
<a name="example-draw-clusters"></a>

![Map showing earthquake locations across the Pacific Ocean with varying circle sizes indicating magnitude.](http://docs.aws.amazon.com/location/previous/developerguide/images/samples/clusters_small.png)


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](https://github.com/aws-samples/amazon-location-samples/tree/main/react-map-gl-clusters)

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon Location Service. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query location` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
