Skip to content

Allow Multiple Labels for a Layer - #729

Open
geographika wants to merge 3 commits into
compassinformatics:masterfrom
geographika:multiple-labels
Open

geographika wants to merge 3 commits into
compassinformatics:masterfrom
geographika:multiple-labels

Conversation

@geographika

Copy link
Copy Markdown
Collaborator

This PR allows mutliple label layers to be configured in the config JSON.

The name should match a back-end WMS layer containing labels. title will be displayed in the sub-menu, similar to the styles property.

E.g.

 "labels": [
     { "name": "LabelsName", "title": "Names" },
     { "name": "LabelsCode", "title": "Codes" }
 ]

This will create a new context menu option with a submenu allowing different labels to be selected.

image

The labelClassName remains, but if both are set a warning will be given and labels takes priority.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant