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

Like to use LineString too #46

Open Sunny-day-007 opened 7 years ago

Sunny-day-007 commented 7 years ago

Hey guys, I have got a couple of questions:

  1. I will like to use LineString instead of MultiPoints with this API, is this even possible? I tried changing the geometry.type in my data to LineString but all the lines changed to same color. I will like to retain the distinct colors that come with each track.
  2. I want more data displayed in the popup like time, speed etc - I tried this also but could not manage to get it change as the markers move along the tracks (just like lat lang)

Every help is appreciated.

hallahan commented 7 years ago

This is not currently possible. I'll accept a PR with this feature.

SFSailor commented 6 years ago

At least of the current release, if you set the geoJSON type to LineString, you get a nice polyline output.

"geometry": { "type": "LineString"