<div dir="ltr">It depends on what is slowing down: retrieving the data via OverPass, parsing that file, drawing the individual pins ?<div><br></div><div>- retrieving the data can be avoided by caching in a GeoJSON file. I don't expect that clustering will help if this is the bottleneck</div><div>- the two other parts depend on your machine, browser and JavaScript interpreter, although clustering helps improving the drawing, as one has to display less pins.<br></div><div><br></div><div>Limiting the data to a certain viewport only helps when you start looking for POIs when you are zoomed in enough. If you don't do that, you'll see 30.000 markers when the whole world is viewed.</div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 1, 2014 at 10:17 AM, SomeoneElse <span dir="ltr"><<a href="mailto:lists@mail.atownsend.org.uk" target="_blank">lists@mail.atownsend.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/10/2014 02:00, Bryce Nesbitt wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
* Slowed down too much after about 200 points of interest (I need about 30,000 minimum for the current project)<br>
* Limited flexibility in designing the popup<br>
* Ways disappear on the map (they don't get a pin: zoom in on the map to see two hidden toilets).<br>
<br>
</blockquote>
<br>
It's not the same sort of thing as uMap, but for info the "switch2osm leaflet example" does include some information about getting data from an external source for the map viewport (so you don't try and display everything all of the time):<br>
<br>
<a href="http://switch2osm.org/using-tiles/getting-started-with-leaflet/" target="_blank">http://switch2osm.org/using-<u></u>tiles/getting-started-with-<u></u>leaflet/</a><br>
<br>
You'd presumably need to do something similar to "thin out" the POIs made available if there are "too many" in a given area.<br>
<br>
Cheers,<br>
<br>
Andy<br>
<br>
<br>
______________________________<u></u>_________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org" target="_blank">talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/talk</a><br>
</blockquote></div><br></div></div>