Skip to content

Add label support to marker api #204

@dannyleech

Description

@dannyleech

There are several use cases for direct labelling of features on the map. Typically features are programatically labelled or labelled on click, its probably good practice to avoid labelling on hover as this can be distracting. Its unlikely that more than a couple of features would need labels visible at the same time either as this would cause overlapping issues. The proposal is to handle this through the markers api.

Adding an html prop to the config would generate a label centered horizontally above the coordinate. If the makrer has a symbol then the label would be centered above this instead.

We would need to ensure that the interact plugin only targets markers that have a symbol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreSits within the core of the interactive map componentplugin:interact

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions