Skip to main content

Marker option in SimpleLineSymbolJson

Comments

1 comment

  • Johanne van Linge

    Did a bit of research, to get the default line symbol “unstuck” as an arrow, you can reset the default symbol back to the original (as long as you know the settings for it). You can just use this code in that Arrow drawing command, but change the symbology to what you want (both for the arrow at the top as for the default at the bottom)

    [
        {
            "name": "drawing.set-default-symbol",
            "arguments": {
                "type": "esriSLS",
                "color": [
                    75,
                    75,
                    75,
                    255
                ],
                "width": 1.5,
                "style": "esriSLSSolid",
                "marker": {
                    "placement": "end",
                    "style": "arrow"
                }
            }
        },
        {
            "name": "sketching.capture-geometry",
            "arguments": {
                "geometryType": "polyline"
            }
        },
        "drawing.create-graphics",
        "map.add-markup",
        {
            "name": "drawing.set-default-symbol",
            "arguments": {
                "type": "esriSLS",
                "color": [
                    75,
                    75,
                    75,
                    255
                ],
                "width": 1.5,
                "style": "esriSLSSolid"
            }
        }
    ]
    0

Please sign in to leave a comment.