Hi,
thanks for pointing this out – the API docs were incomplete – just updated them.
you first have to create a layer map which afterwards you can assign markers to.
Adding a layer:
http://your-domain/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=YOUR_KEY&action=add&type=layer&name=Store&lat=48.3434&lon=16.43234
This newly created layer gets an ID (let´s say it is 1 in our example) – this has to be used in the request to add new markers to it:
http://your-domain/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=YOUR_KEY&action=add&type=marker&layer=1&lat=48.233&lon=34894
best,
Robert
Hello!
Ok, thank you very much. I’ve tested the map with over 2000 markers (clustering used, of course). The results are very well – the map page lags out due loading, but insignificant, almost seamless at all.
We’ll thankfully use the plugin for our needs. Also we’d be glad to see a server clustering function, if it’d be added someday – sometimes our projects has even more markers.
Thanks again!
you’re welcome – glad to hear that my plugin fits your need. BTW: will release pro v1.1 later this week with integrated leaflet.js v0.6.5 and updated marker clustering code.
Ok, that’s cool. We’ll upgrade.
I have another question about base layers available. Can i ask it here, or it’d better to create a different topic?
please open a new ticket as this might be easier for others to follow & who might have the same question