LeafletPlayback icon indicating copy to clipboard operation
LeafletPlayback copied to clipboard

Marker popup

Open Radhakrishanan opened this issue 8 years ago • 6 comments

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 avatar Aug 08 '16 07:08 Radhakrishanan

@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.

Radhakrishanan avatar Aug 11 '16 11:08 Radhakrishanan

You will need to modify getPopupContent in MovableMarker

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

hallahan avatar Aug 11 '16 14:08 hallahan

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?

Sunny-day-007 avatar Sep 14 '16 22:09 Sunny-day-007

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.

hallahan avatar Sep 15 '16 16:09 hallahan

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.

Sunny-day-007 avatar Sep 15 '16 19:09 Sunny-day-007

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 ; )

hallahan avatar Sep 15 '16 19:09 hallahan