Select to view content in your preferred language

Adding addition points of interest

734
1
03-17-2011 04:39 AM
BrianCook
Emerging Contributor
1. Is it possible to add custom location sbased on Lat/Long?

2. If so then can it be added with either a SQL databasee or XML file inport at runtime?

THanks,
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor

1. Is it possible to add custom location sbased on Lat/Long?

Yes, you can create a GraphicsLayer and add by code a graphic corresponding to your custom location. If your map is not in Geographical coordinates, you will have to project your Lat/long into the spatial reference of the map.

If so then can it be added with either a SQL databasee or XML file inport at runtime?

Yes both are possible.
From a SQL DataBase you will need MapIt at the server side (or ArcGIS Server) : see a sample here : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SDSFeatureLayer
From a XML file, you can look at the GeoRss sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRssSimple
0 Kudos