Select to view content in your preferred language

Add ArcGISDynamicMapServiceLayer to Web Map

753
2
02-26-2014 10:58 AM
MichaelVolz
Esteemed Contributor
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?
0 Kudos
2 Replies
RamonCampos
Occasional Contributor

The URL does not resolve. The error message states "This webpage is not available". Double check the URL to make sure it is correct. Then call map.addLayer(bound) after your declaration in your code above.

0 Kudos
BrandonColeman
Deactivated User

Try loading the URL in your own web browser and see if that loads up the ArcGIS Services Directory listing for that service.  If it doesn't, then you probably have a URL problem. 

Also, do you have a public facing link?  If you post a public facing link, we could try to access it to see if it is correct on the public end.

0 Kudos