Answer the question
In order to leave comments, you need to log in
How to add marker to cursor in leaflet on button click?
Question on leaflet js
I press the button to add a marker.
Now when you click on a point on the map, a marker is added - it works.
But I want that when hovering over the map (when the mouseover event fires)
, make sure that the cursor immediately has a marker at that moment, which only needs to be placed on the map.
Here's what it looks like:
Here's what I want to get:
-I'm doing it on drug and drop (don't pay attention to building the route)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question