A
A
Alexander Buki2019-07-18 18:05:38
JavaScript
Alexander Buki, 2019-07-18 18:05:38

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:
5d308a6b06b37802226095.gif
Here's what I want to get:
-I'm doing it on drug and drop (don't pay attention to building the route)
5d308aae970c0018737881.gif

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question