"esri/map", "esri/layers/FeatureLayer", "esri/dijit/Legend", "esri/digit/Scalebar","esri/dijit/HomeButton", "dojo/_base/array", "dojo/parser", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/AccordionContainer", "dojo/domReady!"
I would like to add a dynamic mapservice to the javascript webmap.I tried the following syntax but the mapservice does not show up.var bound = new ArcGISDynamicMapServiceLayer("http://arcgis/ArcGIS/rest/services/MapServices/Bound_D/MapServer", { useMapImage: true });Can anyone tell me what I am doing wrong?
var legendDijit = new Legend({ map: map, layerInfos: layerInfo, respectCurrentMapScale: false }, "legendDiv");
map = new Map("map", { basemap:"streets", center: [-96.509, 38.367], zoom: 14 });
Would this file just need to be added to a server that has IIS in the following location:\\ServerName\c$\inetpub\wwwrootin order to have a simple working web application?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.