How to construct polygon symbol with marker in the center?

554
1
05-25-2019 09:30 PM
by Anonymous User
Not applicable

How do I construct a polygon symbol with a single picture marker in the center?

I think it is the MultilayerPolygonSymbol type that I want to use?

I created a simple fill symbol and also a PictureMakerSymbolLayer, and tried to combine them into a multi layer polygon symbol, similar to this:

var newMultiLayerSymbol = ArcGISRuntimeEnvironment.createObject("MultilayerPolygonSymbol", {initSimpleFillSymbol: mySimpleFillSymbol})

newMultiLayerSymbol.symbolLayers.append(myPictureMarkerSymbolLayer)
I then created a graphic with a polygon geometry and gave it that symbol. It kind of worked,
in that I got a polygon with my simple fill but it also wall-papered (i.e. tiled) the 
picture marker symbol across the polygon too! I instead wanted just one single instance of the
picture marker symbol in the center of my polygon.

Am I on the right track and how could I do this?

fyi, the documentation seems to suggest I can do this:
https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-multilayerpolygonsy...
"This is a polygon symbol with multiple layers. Each layer has its own properties like width, height, and offset, that can be combined to create polygon symbols with special effects (a polygon with a marker in the center, for example). "

0 Kudos
1 Reply
ErwinSoekianto
Esri Regular Contributor

Looping in ArcGIS Runtime SDK for Qt‌ to see anyone on this group could help answer this question.

0 Kudos