Draw circles and sectors on the map

Discussion created by on Oct 19, 2017
Latest reply on Nov 1, 2017 by LDanzinger-esristaff


I'm currently displaying a circle on the map which represents a 360 degrees system range, and is created using the following code. I have a few questions about it...



SimpleLineSymbol* circleOutline = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, QColor(Qt::lightGray), 2, this);
SimpleFillSymbol* circleSym = new SimpleFillSymbol(SimpleFillSymbolStyle::Solid, Qt::transparent, circleOutline, this);

m_graphicsOverlays[GRAPHIC_OVERLAY_RANGE]->setRenderer(new SimpleRenderer(circleSym));

Polygon poly1 = GeometryEngine::bufferGeodetic(systemPosition, range1Meters, LinearUnit::meters(), 0.5, GeodeticCurveType::Geodesic);

Graphic* graphic1 = new Graphic(poly1);




1. I would like the circle to have a slightly complicated outline. 4 pixels wide, two white inner pixels and two outer black pixels. Is that possible?

2. I also need to display (in some situations) just a specific section of a circle (like a piza slice...) Can I do that?

3. I would appreciate a detailed explanation regarding the differences between the different curve types.


Thanks a lot!