Markup level 37 as the only display field for drawing-based results
We have a WebGIS solution based on VSW, where we use a custom command chain to add current drawings to the result list:
[
"map.get-markup",
{
"name": "results.from-graphics",
"arguments": {
"title": "Tegninger"
}
},
"results.display",
"results.add"
]This works fine in that all drawing-derived results are grouped under the “Tegninger” (=Drawings) “layer”, but when viewed individually, they all have a display field “37", which shows in their titles in the result list, in the popup title in the result details, and in the label on the drawing itself, when it is in focus state:


I understand that this results from the only attribute that drawing features have, markupLevel, which always has the value of 37, but this is quite confusing for our users - the number 37 seems very arbitrary, and they have no way of telling the multiple drawings apart if they are all called the same.
Is there any way to allow the users to define a custom title/display field for each drawing they make/add to results, or alternatively, to assign them names sequentially, e.g. “drawing 1”, “drawing 2” etc.?
I have experimented with different arguments for the “results.from-graphics” command, and the best I could achieve was result with an empty display field (with the title missing completely), by setting a displayField argument to anything else than “markupLevel”:
[
"map.get-markup",
{
"name": "results.from-graphics",
"arguments": {
"title": "Tegninger",
"schema": {
"displayField": "test"
}
}
},
"results.display",
"results.add"
]

This is however far from optimal. Does anyone have experience with choosing a more meaningful title for the drawing results, or know about any VertiGIS plans to make it configurable in any way? Thanks in advance!
Vous devez vous connecter pour laisser un commentaire.
Commentaires
0 commentaire