Skip to content

Does a L.timeDimension.layer support click events? #223

@jonaschu

Description

@jonaschu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions