You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While Admin UI can set both featureTitle and shortFeatureTitle, there is a bug in Client that will display the featureTitle not only in the search results list but also as a map label - where shortFeatureTitle was intended to be used.
In #1126 I've added the possibility to define hard-coded labels that will be used in search results list and map view, as labels, in case of lacking values in the data source:
This does work as expected:
Gives:
Now, there's also a possibility to set a label that will be displayed in map:
This does not work as intended however. The MapClickViewer/FeatureInfo/Infoclick part is doing fine:
However, if this layer happens to be active as a search source too, we would expect the value of short display field "Landsbygd B" to show up. It doesn't:
The text was updated successfully, but these errors were encountered:
- shortDisplayFields are shown at the first stage of results (if showResultsInMap is active)
- displayFields are shown in the highlighted stage
- Also, fixed a bug that rendered 'No attributes found' if just one of the attributes returned an undefined value.
- Restores and improves #1002 and closes#1148.
Summary
There are two bugs that are related here:
featureTitle
andshortFeatureTitle
, there is a bug in Client that will display thefeatureTitle
not only in the search results list but also as a map label - whereshortFeatureTitle
was intended to be used.featureTitle
orshortFeatureTitle
inside quotation marks doesn't do what's expected (it should display the value as-is, if string is surrounded by double quotes). (See FeatureInfo: Make it possible for admins to set a hard-coded label when no good attribute values exists on dataset #1126.)Description
In #1126 I've added the possibility to define hard-coded labels that will be used in search results list and map view, as labels, in case of lacking values in the data source:
This does work as expected:
Gives:
Now, there's also a possibility to set a label that will be displayed in map:
This does not work as intended however. The MapClickViewer/FeatureInfo/Infoclick part is doing fine:
However, if this layer happens to be active as a search source too, we would expect the value of short display field "Landsbygd B" to show up. It doesn't:
The text was updated successfully, but these errors were encountered: