Aller au contenu principal

Markup Draw Order

Commentaires

4 commentaires

  • Sean Phayakapong

    Hi Zorba, what did you do for the text markup? Is it a custom command?

    0
  • Zorba Conlen

    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
  • Sean Phayakapong

    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
  • Zorba Conlen

    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.