Description
openedon Apr 22, 2016
Hello everybody,
I am a debutant developper and it is first time i am using leaflet. I need to do be able to create new markers each time the user click on the map and to draw a line binding the all the markers. Then i need to be able to add a new marker between two markers, thus to draw the line with the new marker included.
something like this :
A ----------------------- B
Here there are two markers A and B on the map. Both are binded with a line .
I need to add a marker C between A and B and to draw a line between binding all three markers, like this :
A-------------------------------C-------------------------------------B
But i want to be able to do this when the user is clicking.
I succeeded in creating markers on each click of the user and draw a line between all the markers, (i used the event onClick(), but now i need a help from you all to add a marker between two binded markers .
Please how do i do this, i really your help with this as i am making this for a school project and i need to submit it.
thanks
Waiting eagerly for your help ....
Help53