Hello, Im trying to set a renderer on a new GraphicsLayer. The GraphicsLayer hat a group of graphics with their own Symbols. The renderer symbol are not applied to this graphics.
GraphicsLayer gLayer = new GraphicsLayer(webmercator, projected_extent, GraphicsLayer.RenderingMode.DYNAMIC);
Graphic pointGraphic = new Graphic(point_projected, new SimpleMarkerSymbol(Color.BLUE, 10, CIRCLE));
gLayer.addGraphic(pointGraphic);
SimpleMarkerSymbol simpleMarkerSymbol = new SimpleMarkerSymbol(Color.RED, 20, CIRCLE);
SimpleRenderer simpleRenderer = new SimpleRenderer(simpleMarkerSymbol);
gLayer.setRenderer(simpleRenderer);
mapView.addLayer(gLayer);
After addLayer the graphics uses the blue circle symbol instead the renderer with red circles symbol.
Thanks for the help and best Regards,
Cesar
Ok, that means I can instance a Graphic with null Symbol (because all constructors require Symbol). I Would try it. Thank your for your Answer.
Did that work for you? I just tried it and it did not work for me.