hallahan / LeafletPlayback

This is a Leaflet plug-in that plays back points that have a time stamp synchronized to a clock.
http://leafletplayback.theoutpost.io
Other
482 stars 165 forks source link

Get the marker postition #55

Open Ismaelgg94 opened 7 years ago

Ismaelgg94 commented 7 years ago

How can i get the actual position of a marker that has been drawn by the plugin?

elbalu commented 7 years ago

Yes, even i am using the playback plugin and i am using it on an image overlay. I need to scale the floor map before placing the marker. with the plugin the marker is placed some where outside of the floor map.

I am able to solve the issue for GPS tracking, where i have written a function to scale the map and place the marker inside pointToLayer method of layer property.

I want to do the same for marker too. any help is appreciated.