SimpleMarkerSymbol

Loading

Code

import QtQuick 2.6
import Esri.ArcGISRuntime 100.2

Rectangle {
    clip: true
    width: 800
    height: 600

    // Map view UI presentation at top
    MapView {

        anchors.fill: parent

        Map {
            BasemapImagery {}

            // create initial viewpoint
            ViewpointCenter {
                targetScale: 7500

                Point {
                    x: -226773
                    y: 6550477
                    spatialReference: SpatialReference { wkid: 3857 }
                }
            }
        }

        // create a new GraphicsOverlay for the MapView
        GraphicsOverlay {

            // add graphic to overlay
            Graphic {

                // define position of graphic
                Point {
                    x: -226773
                    y: 6550477
                    spatialReference: SpatialReference { wkid: 3857 }
                }

                // set graphic to be rendered as a red circle symbol
                SimpleMarkerSymbol {
                    style: Enums.SimpleMarkerSymbolStyleCircle
                    color: "red"
                    size: 12
                }
            }
        }
    }
}


In this topic
  1. Code