AnsweredAssumed Answered

How to construct polygon symbol with marker in the center?

Question asked by paul.haakma on May 25, 2019
Latest reply on May 28, 2019 by ESoekianto-esristaff

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). "