I am using dictionarySymbolStyle and dictionary renderer in ArcGIS qt 100.5 to read and display symbols from a style file. The code for the function is as follows. m_mapView is my MapGraphicsView object. The application is successfully built. The map is displayed in the output window however the points aren't displayed. The points are displayed using a simplemarkersymbol but not using the dictionary symbology. Can somebody guide me why this problem is occurring??
void offlinemap2d::addPointsFromStyleFile()
{
//create a new graphicsoverlay
GraphicsOverlay* graphicsOverlay = new GraphicsOverlay(this);
// create a list of points
const QList<Point> pointsList
{
Point(72.852642647560347, 19.092812566811544, SpatialReference::wgs84()),
Point(72.8708416959572303, 19.08444173689877, SpatialReference::wgs84()),
Point(32.6697273884990937, 56.064250073402874, SpatialReference::wgs84()),
Point(32.6395150461199726, 56.06127916736989, SpatialReference::wgs84())
};
// create the symbology for the points
dictionarySymbolStyle = new DictionarySymbolStyle("mil2525d",":/Res/mil2525d.stylx", this);
DictionaryRenderer* renderer = new DictionaryRenderer(dictionarySymbolStyle, this);
graphicsOverlay->setRenderer(renderer);
foreach (const Point &buoyPoint, pointsList)
{
graphic = new Graphic(buoyPoint, this);
graphicsOverlay->graphics()->append(graphic);
}
//add overlay to the map
m_mapView->graphicsOverlays()->append(graphicsOverlay);
}