Hello,
I want to display country boundaries on the arcgis desktop map application, what exactly do we have to use for this?
I tried the code you gave. i added the following :
dojo.require("esri.layers.agsdynamic");
require([
"esri/map", "esri/graphic", "esri/symbols/SimpleMarkerSymbol",
"esri/tasks/GeometryService", "esri/tasks/ProjectParameters",
"esri/SpatialReference", "esri/InfoTemplate", "dojo/dom", "dojo/on",
"dojo/domReady!"
], function(
Map, Graphic, SimpleMarkerSymbol,
GeometryService, ProjectParameters,
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
Are you using Legacy or AMD style class referencing?
You add the World reference layer as a Dynamic Map Service layer to your map. The Javascript API reference is here: https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer.html
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"); map.addLayer(worldDMS);
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.
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 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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.