Select to view content in your preferred language

No Example MultiLayerSymbol

3468
10
Jump to solution
12-12-2012 10:19 PM
kishanchintala
Deactivated User
Hi,

I started using ArcGGIS runtime API, I fell there so many gaps in API ( Like documentaton is too week, not like ArcGIS Standered and we can not extend some of the classes like SimpleMarkersymbol). Now i am facing problem how i can use MultiLayerSymbol, there is no example, if any one have MultiLayerSymbol example please send to me.

Thanks in advance.
Kishan.
0 Kudos
10 Replies
CarlosColón-Maldonado
Frequent Contributor
I've discovered that, as of 10.2 and later, testing for CompositeSymbol instead of MultiLayerSymbol objects seem to work for all cases where null values aren't an issue, particularly because you know those single-point layers (not lines or areas), as follows:
//get graphic
Graphic graphic = positionReportLayer.getGraphic(graphicId) ;

//get the symbol type for the graphic
Symbol milSymb = graphic.getSymbol();

//is this a composite symbol?
if (milSymb instanceof CompositeSymbol)
{
System.out.println("this is a composite symbol");
} else {
System.out.println("this must be a multi-layer symbol");
}


This highly depends on having direct access of the message group layer's graphics layers for adding composite symbols per this post. Although it's been said that they cannot be used on layers with added renderers, I have found that composite symbols seem to work just as well.
0 Kudos