I
I
Ivan Damaskin2015-02-19 20:12:05
JavaScript
Ivan Damaskin, 2015-02-19 20:12:05

How to switch markers on the map using navigation?

Hello to all javascript monsters
Tell me how, when you click on a button, show a group of markers and when you click on another button, those markers are removed and another group appears.
jsfiddle.net/Raynor/db694go9/1 from an example of a group of markers shown on a map.
I can't get it when I click on the button first to clear the markers, then show a group of markers and when clicking on another link, show the second group of markers, and the first group should be removed from the map.
Only there is a condition that you need to use the leafletjs library, because I have a vector map built on it, and I really don’t want to switch to OpenLayers, for example -(
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Sysoletin, 2015-02-20
@Joannes

Somehow so .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question