LeafletPlayback icon indicating copy to clipboard operation
LeafletPlayback copied to clipboard

Like to use LineString too

Open Sunny-day-007 opened this issue 8 years ago • 2 comments

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.

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

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

hallahan avatar Sep 30 '16 17:09 hallahan

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

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

SFSailor avatar Nov 26 '17 21:11 SFSailor