Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeatureInfo: Make it possible for admins to set a hard-coded label when no good attribute values exists on dataset #1126

Closed
jacobwod opened this issue Jun 23, 2022 · 0 comments
Assignees
Labels
module:client/core Core functionality (not a plugin) new feature Request for adding/changing functionality
Milestone

Comments

@jacobwod
Copy link
Member

Currently admins can control what is shown in the primary and secondary labels in the new MapClickViewer using these settings:
Skärmavbild 2022-06-23 kl  11 17 22

This gives a nice summary:
Skärmavbild 2022-06-23 kl  11 17 44


However, not all datasets have relevant fields with information that can be exposed to the user. Still we must display something (both in the list and in the breadcrumbs). The current solution was to grab OpenLayer's FID (feature ID) and make it a label. Not very nice, but it works:
Skärmavbild 2022-06-23 kl  11 19 13


Due to popular request from multiple organizations, we have now decided that we should let admins set a hard-coded label, if it is preferred. The syntax that we propose is putting the label inside double quotation marks.

So, something like this:
Skärmavbild 2022-06-23 kl  11 20 53

Will result in:
Skärmavbild 2022-06-23 kl  11 21 26


I hope this solves some problems, @FredrikEkstrom79, @lina-sbk-gbg!

BTW, it would be great if someone could add some documentation about this to the relevant place in our Wiki. Thanks!

@jacobwod jacobwod added module:client/core Core functionality (not a plugin) new feature Request for adding/changing functionality labels Jun 23, 2022
@jacobwod jacobwod added this to the 3.11 milestone Jun 23, 2022
@jacobwod jacobwod self-assigned this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:client/core Core functionality (not a plugin) new feature Request for adding/changing functionality
Projects
None yet
Development

No branches or pull requests

1 participant