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
481 stars 165 forks source link

Marker popup #45

Open Radhakrishanan opened 8 years ago

Radhakrishanan commented 8 years ago

Hi hallahan, I got what was am expecting i use "type": "LineString" instead of "type": "MultiPoint", ,

Now i would like to ask one i.e, in our marker popup show geojson latlan but i want to show speed on it, how i can do ?

Thank you so much ,

Radhakrishanan commented 8 years ago

@hallahan , could you please let me know the answer for above question, am now in real time system so i have speed for each Latitude and Longitude. Here i want to display speed on market instead of latlng, Is it possible to do ? kindly answer me as soon as quickly.

hallahan commented 8 years ago

You will need to modify getPopupContent in MovableMarker

https://github.com/hallahan/LeafletPlayback/blob/master/src/MoveableMarker.js#L40

Sunny-day-007 commented 7 years ago

Hey hallahan, Thank for this project. I am planning to use your API in a project I am working on. I am kind of stuck on adding more dynamic data to the popups. when I play it shows just the first element of the array (say time) though the latlang was changing as the maker moves along the coordinates but the time remained static(stuck on the first time[0]). How do I make this change as well, just like the coordinate position?

hallahan commented 7 years ago

What do you mean by:

the time remained static(stuck on the first time[0])

Are you saying the time value in the popup? I assume you just need to update the popup content with whatever is in the clock. This will require a slight tweak to the library.

Sunny-day-007 commented 7 years ago

I meant the time would not update. i intend adding other parameters like speed, altitude etc. If you can help with this 'tweak' I will appreciate it.

hallahan commented 7 years ago

I can answer questions, but you're going to have to give me specifics of your code. You're free to do as you wish with this project, but that doesn't come with support ; )