Skip to content

How to distinguish markers in on_click handlers? #644

Open
@sradomski

Description

@sradomski

Hey there,

I have a bunch of markers (with potentially identical positions) in a MarkerCluster that will spiderfy at the appropriate zoom level. When a user clicks on a spiderfied marker, I want to display something specific for that marker within a WidgetControl. However, I am unable to identify the Marker that was clicked from within the on_click handler as only event, type and coordinates are passed, which are not unique.

Is there any way to know which actual marker was clicked?

Thank you
Stefan

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions