Markup Draw Order
Hi. Wondering if there's a way to configure markup to draw above other layers on the map. Asking because we have feature layers in our webmap with labels configured, and the markup draws below those labels (note that it's not the case for map image services).

I see there is a ‘level’ arguement that can be specified for the map.add-markup command, which purports to define a z-level value for the markup. I have tried each of the options from "ui" to “custom1”, and none have achieved the desired effect of having the markup draw above the label.

Is this even feasible? Or am I doing something wrong? Here is how I have it configured in web. Thanks.
[
{
"name": "system.repeat-action",
"arguments": {
"action": [
{
"name": "sketching.capture-geometry",
"arguments": {
"geometryType": "point",
"pluginSettings": {
"snapping": true
}
}
},
"drawing.create-graphics",
{
"name": "map.add-markup",
"arguments": {
"level": "ui"
}
}
]
}
}
]-
Hi Zorba, what did you do for the text markup? Is it a custom command?
0 -
Hi Sean. Yes, the text is a custom command, similar to what I posted above for point markup.
To be clear, the green text is a feature label configured on the feature service. As you can see, the point displays below that label. If I were to add a text markup, it would likewise display below the label.
Thanks
0 -
Ah I see. Would you mind sharing your command? I was looking at VertiGIS documentation and was trying to figure out this tool, as it was native in HTML5.
0 -
Sure. We have it like below. Note that ours is configured as a sticky tool so that users can create multiple text markups. So, the commands for text markup are wrapped within the system.repeat-action command. If you don't want that sticky behavior, you'd need to modify this slightly. LMK if any questions.
[ { "name": "system.repeat-action", "arguments": { "action": [ { "name": "sketching.capture-geometry", "arguments": { "geometryType": [ "point" ] } }, "tasks.identify", { "name": "map.create-note", "arguments": { "attributes": { "slot": "top-start" } } } ] } } ]1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires