Select to view content in your preferred language

Drawing TacticalGraphics using the API for WPF

3138
25
10-21-2010 05:23 AM
RashaGarfinkel
Emerging Contributor
I have to draw Military Tactical Graphics using the ArcGIS API for WPF - has anyone ever done this before, that can give me some guidance on where to start? What map objects to use to draw military graphics? Any help/suggestions would be very much appreciated.

Thanks
0 Kudos
25 Replies
MarioVernari
Emerging Contributor
Bah!...
Useless to say that I used VS2010 with .Net 4.
WebMercator is part of the ArcGis APIs.
Did you use the version 2.0?

Mario
0 Kudos
RashaGarfinkel
Emerging Contributor
I am also using VS2010
It seems that I have version 1.1 based on the folder directory
C:\CJMTK9.3\ArcGIS\References\ESRI SDKs 1.1

What is the WebMercator used for - is there an object that matches it in my version?
0 Kudos
MarioVernari
Emerging Contributor
I really don't know, 'cos I started to play with version 2.0.
Anyway WebMercator is a class making conversion from/to coords using the Mercator Ortho projection.
I guess you should have something equivalent, but why don't step up to version 2.0?
Mario
0 Kudos
RashaGarfinkel
Emerging Contributor
I wanted to thank you for your app I downloaded version 2 & got it working - I am hoping it would give me a good start, in the meanwhile I am trying to take the lowlevel mil classes from that project & bring them over one at a time & then tie it into Esri classes.
0 Kudos
RashaGarfinkel
Emerging Contributor
Back to my initial question - I was able to capture user points from the Map & now I want to convert them to TacticalGraphics - I see there is a GraphicLayer object is that the layer I should use to add the actual graphic too?
What if I want to create multiple layers would that mean a new GraphicLayer each time?
0 Kudos
JenniferNery
Esri Regular Contributor
GraphicsLayer has a Graphics property which is a collection of graphics. So you can use the same layer and just keep adding to its Graphics.

Here are some of the SDK Samples:
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphics
0 Kudos