Map performance: how many regions is too many?
How geometry, images, labels, and basemap choices affect map performance, with a repeatable way to compare your map on the devices your viewers use.
When a map feels slow, region count alone does not explain why. The amount of geometry in each region, marker images, labels, basemap tiles, browser, and device all affect the result. This guide shows what to inspect and how to compare changes on the devices your viewers actually use. The examples are troubleshooting prompts, not Turf-map.io performance benchmarks.
The myth of the region count
There is no universal region count that guarantees a fast map. A large set of simple shapes can behave differently from a smaller set of detailed shapes with many vertices, labels, and images. Measure your own map on a representative phone and desktop browser before deciding which part needs attention.
So when somebody complains about speed, the first question isn’t “how many regions do you have?”. It’s “what’s the heaviest single thing on the map?”.
The five things that actually cost performance
- Polygons with thousands of vertices. Tracing a coastline at full detail produces beautiful boundaries and miserable phones. A single 4,000-vertex polygon costs more than a hundred 40-vertex ones.
- Oversized marker images. Large files take longer to download and can use more memory once decoded. Resize raster icons close to their display dimensions; use SVG for simple shapes when the upload flow supports it.
- Too many visible labels. Dense labels can hide the shapes people came to see and may add drawing work. Test a less crowded view at the zoom levels your visitors use.
- Basemap detail. A busy basemap can compete with region fills and labels. Compare the available map styles on the same device; the fastest choice depends on the data and renderer.
- Pop-up content with images. A pop-up that fetches a remote image when you click on a region is fine in isolation; the problem is the network call holding up the click.
Remove detail viewers cannot see
A boundary can contain more points than viewers can distinguish at the scale where they use the map. Before removing points, save a copy and compare the result at the normal viewing zoom. Keep points that define a meaningful corner or curve; remove redundant points along a straight edge.
Turf-map.io lets an owner edit polygon points from the map dashboard. Make a small change, compare the public view, and undo it if the boundary loses meaning. The polygon drawing guide covers where to add points when you create a region.
The marker icon trap
A marker icon is often displayed much smaller than its source image. Uploading a large image for every marker can increase download time and memory use, especially on phones. Keep the source close to its displayed size when practical.
Three habits keep marker performance under control:
- Choose the format for the artwork. SVG works well for simple shapes and logos; raster formats are appropriate for photographs and textures.
- Size raster images deliberately. Use dimensions that remain clear at the marker’s display size, including on high-density screens, without shipping unused pixels.
- Reuse, don’t duplicate. If twenty markers are the same icon, they should all point to the same uploaded asset. Each unique upload is a separate fetch.
Hide labels until they earn the screen
A common mistake: labels visible at every zoom level. The eye sees one giant blur of text and the map feels “laggy”, even though nothing is technically slow. The fix is to set a minimum zoom for labels — at the city-level zoom, only neighbourhood names; at the street-level zoom, all labels.
This isn’t just a performance trick. It’s also a legibility trick. A map with all labels visible at all zoom levels looks like a wall of text. A map with labels that fade in as you zoom feels alive.
Measure before changing the map
There is no single load-time target that fits every map and every connection. Record how long your map takes to become usable on a typical phone and desktop, then repeat the same check after each change. This gives you evidence about whether an edit helped.
Use a fresh browser tab so cached images do not hide download costs. Check marker file sizes, complex boundaries, visible labels, and basemap detail one at a time. If you change several at once, it is difficult to tell which change mattered.
The hidden cost of categories
Categories are mainly an organization and reading tool. A shorter list can make the legend easier to use, but do not assume reducing categories will improve speed; measure before treating it as a performance fix.
When you really do have too many regions
If a map has more detail than visitors need in its overview, consider dividing it into a high-level map and a separate detailed view. Some mapping tools also support zoom-based visibility; use that only when your editor provides it and verify the result at each zoom level.
Start with a consistent level of detail, then use measurements from real devices to decide whether you need to simplify geometry, resize images, or change how much information appears at once.
Collaborating on a shared map without stepping on each other
Letting your community submit regions without losing the plot
Try the ideas in this article on a real map.
Spin up a free map at your own subdomain in under a minute. No install.
Start a free map