Custom symbols for SimpleRenderer

2041
1
01-28-2013 12:16 PM
AndyJames
New Contributor
With the iOS ArcGIS SDK, I can derive my own Symbol class and fully customize its appearance with raw 2D graphics drawing commands by overriding:

/** Method called by @c AGSGraphicsLayer to draw geometry onto context.
@since 1.8
*/
- (void)drawGraphic:(AGSGraphic *)graphic inContext:(CGContextRef)context forEnvelope:(AGSEnvelope*)env atResolution:(double)resolution;


However, I cannot find anything like this in the Android ArcGIS SDK.  Am I missing something?
0 Kudos
1 Reply
KevinGebhardt
New Contributor III
You can use a drawable:
Drawable icon = context.getResources().getDrawable(R.drawable.symbol);
PictureMarkerSymbol pms = new PictureMarkerSymbol(icon);

First you have to put an image in one of the drawable folders:
[ATTACH=CONFIG]21290[/ATTACH]

Then you can initialize each Graphic of you GraphicsLayer with that symbol
0 Kudos