How to construct polygon symbol with marker in the center?

05-25-2019 09:30 PM
Regular Contributor

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})

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:
"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
Esri Regular Contributor

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

0 Kudos