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.
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. AlsogeojsonLayer.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?