You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add functionality on a click event to a timedLayer = L.timeDimension.layer.geoJson(geojsonLayer) the GeoJSON layer is a LineString. Is this possible?
timedLayer.on("click", console.log("Line clicked")) has no effect.
Also geojsonLayer.on("click", console.log("Line clicked")) has no effect, since this layer is not added to the map.
Are there any workarounds to solve this?
The text was updated successfully, but these errors were encountered:
jonaschu
changed the title
Does a L.timeDimension.layer support on click events?
Does a L.timeDimension.layer support click events?
Mar 14, 2023
I want to add functionality on a click event to a
timedLayer = L.timeDimension.layer.geoJson(geojsonLayer)
the GeoJSON layer is a LineString. Is this possible?timedLayer.on("click", console.log("Line clicked"))
has no effect.Also
geojsonLayer.on("click", console.log("Line clicked"))
has no effect, since this layer is not added to the map.Are there any workarounds to solve this?
The text was updated successfully, but these errors were encountered: