CartoDB / odyssey.js

Making it easy to merge map and narrative
BSD 3-Clause "New" or "Revised" License
1.62k stars 187 forks source link

Support for Leaflet L.polyline object #220

Open vincentfs opened 7 years ago

vincentfs commented 7 years ago

Hi, It seems that the current version does not fully support Leaflet L.polyline object, or am I missing something?

I can do addTo method with L.polyline like:

L.polyline(latlngs, {color: 'red'}).addTo(S.map)

But the addTo method will show the polyline eternally from the beginning slide. If I change addTo to addRemove, it breaks the code and won't work.

Any solutions?