Problem wiht SimpleMarkerSymbol

1467
2
12-05-2012 02:23 AM
kishanchintala
New Contributor
Hi,

I am trying to make Application ArcGIS Runtime SDK for Java, i struck with smal issue, but this is stoping me to take decision to Use ArcGIs Runtime.

My problem is very simple but it more important for my application. i just wnat make Custom Sumbol for a point.

The whole idea is to make CIRCLE Symbol without File, see the below code

//Declared SimpleMarker  symbol wiht Circle style
SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(Color.GREEN,22,Style.CIRCLE);

//create point
Point pt = new Point(54.057173742,26.461878931);
// Create Graphic
Graphic gr = new Graphic(pt,symbol);
// added to the GraphicsLayer.
graphicsLayer.addGraphic(gr);
// add to Map
map.getLayers().add(graphicsLayer);

Thanks for in Advance.
0 Kudos
2 Replies
EliseAcheson1
Occasional Contributor
What seems to be the problem?

Does the code above not work?

Thanks for clarifying.

~Elise
0 Kudos
kishanchintala
New Contributor
Thanks Elise,

I resolved the problem with some workaround with crating custom Graphic and SimplefillSymbol.

Thanks for your Reply
kishan.
0 Kudos