I downloaded the Leaflet 0.7.3 of http://leafletjs.com/download.html What do I add a file leaflet.js? |
You can get zoom level by map.getZoom() on zoom-level-change (see map-properties) and only if 17 or 18 you add/show your markers else you give an hint to zoom in |
For info, there's a switch2osm page about this that might help:
https://switch2osm.org/using-tiles/getting-started-with-leaflet/
This is AJAX I would prefer in JavaScript
what about searching or asking on the leafletjs googlegroup mailinglist???
https://groups.google.com/forum/#!forum/leaflet-js