Plotting thousands or millions of points in Leaflet

Learn how to handle thousands or millions of location points with Leaflet JavaScript library using the leaflet-maptilersdk plugin. Download the Public School sample data.

In this Leaflet JS example, the size and color of points are scaled by the number of students in each school. You can load millions of points into Leaflet without affecting the performance of your application.

Replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

Learn more

Check out the Point Layer Helper documentation and look at the Point Helper examples to see the visualization possibilities.

Look at the Visualize points as cluster maps in Leaflet example.

Related examples