FeatureInfo: Make it possible for admins to set a hard-coded label when no good attribute values exists on dataset #1126
Labels
module:client/core
Core functionality (not a plugin)
new feature
Request for adding/changing functionality
Milestone
Currently admins can control what is shown in the primary and secondary labels in the new MapClickViewer using these settings:
This gives a nice summary:
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:
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:
Will result in:
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!
The text was updated successfully, but these errors were encountered: