marylandgis

Can we pass the map service (REST) URL as a URL parameter to the JS API map template?

Discussion created by marylandgis on Jul 26, 2011
Latest reply on Jul 26, 2011 by DSwingley-esristaff
The ArcGIS.com (Javascript) viewer accepts a map service (REST) URL as a URL parameter, like this:

http://www.arcgis.com/home/webmap/viewer.html?url=http%3a%2f%2f129.2.24.163%2fArcGIS%2frest%2fservices%2f00_SMC_Environmental_Health%2fMapServer&source=sd

When I try this with my locally-hosted JS API map template, nothing appears.

Can we pass the map service (REST) URL as a URL parameter to the JS API map template?

Thanks,
Don

Outcomes