I want to display country boundaries on the arcgis desktop map application, what exactly do we have to use for this?
You could use the Esri sample data that is standard with the installation disks or the Esri Web services here: http://server.arcgisonline.com/arcgis/rest/services/Reference
Thank you for your reply. While researching, i did come across this web service, since i am new to esri, i don't know how to incorporate this in my code. If you could please guide me on that, it would be really helpful.
You can navigate to a specific web service page e.g. http://server.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer and at the top of the page there are a couple of "View In" options. For ArcGIS Desktop you can click on the ArcMap link, which will allow you to download a layer file (*.lyr) for ArcGIS Desktop.
Are you using Legacy or AMD style class referencing?
The code for the constructor will look like this:
var worldDMS = new esri.ArcGISDynamicMapServiceLayer(""http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer");
I tried the code you gave. i added the following :
"esri/map", "esri/graphic", "esri/symbols/SimpleMarkerSymbol",
"esri/SpatialReference", "esri/InfoTemplate", "dojo/dom", "dojo/on",
Map, Graphic, SimpleMarkerSymbol,
SpatialReference, InfoTemplate, dom, on
and then the code you gave, but it didn't work.
i am using SAP UI5 and have called <script src="http://js.arcgis.com/3.12/"></script> for map implementation in eclipse
Your code snippet would not create the map to add any layer to it, so yes my code will not work in that case.
No need for me to repeat what has been explained in many good samples.
Thank you so much. it was of great help.
Retrieving data ...