Solved! Go to Solution.
map = new Map("map", { basemap:"streets", center: [-96.509, 38.367], zoom: 14 });
var legendDijit = new Legend({ map: map, layerInfos: layerInfo, respectCurrentMapScale: false }, "legendDiv");
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?