How to make a Circle shape PictureSymbol

08-06-2017 11:52 PM
New Contributor III

Hi ,

when I build a Graphic with PictureMarkSymbol, the shape of Graphic is Rectangle, I want to make a Circle shape Graphic with PictureSymbol, Anyone who know how to do it ?

Tags (1)
0 Kudos
3 Replies
Occasional Contributor III

Hi Yan,

PictureMarkerSymbol has the height and width and doesn't have any Style propery like SimpleMarkerSymbol.
In that case I believe you may create a CompositeSymbol using both SimpleMarkerSymbol with Style "Circle" and PIctureMarkerSymbol as below:


var symbol = new CompositeSymbol();
symbol.Symbols.Add(new SimpleMarkerSymbol() { Style = SimpleMarkerSymbolStyle.Circle, Color = Colors.Blue, Size = 100 });

var symbolUri = new Uri(

PictureMarkerSymbol campsiteSymbol = new PictureMarkerSymbol(symbolUri);

campsiteSymbol.Height = 40;
campsiteSymbol.Width = 40;


// Create location for the campsite
MapPoint campsitePoint = new MapPoint(-223560, 6552021, SpatialReferences.WebMercator);

// Create graphic with the location and symbol
// Graphic campsiteGraphic = new Graphic(campsitePoint, campsiteSymbol);

Graphic campsiteGraphic = new Graphic(campsitePoint, symbol);


I have used "RendererPictureMarkers" sample to test. Hope that helps. 


0 Kudos
New Contributor III

Thanks, Nagma

0 Kudos
Esri Notable Contributor

You will need to create a PNG image with transparent pixels, so only the center parts are non-transparent. That way you can create any shape you'd like.

0 Kudos