AnsweredAssumed Answered

Problem hosting web map template in local web server

Question asked by tylininternational on Feb 5, 2015

Hi,

This is the Webmap I have prepared in ArcGIS online.

http://www.arcgis.com/apps/Viewer/index.html?appid=c72a0fc5e554462daec7df89bcc3adf4

 

I have downloaded a sample template from

https://github.com/Esri/Viewer

 

Now I would like to host at local web server at

http://arcgis.tylin.com

So I have uploaded the template into the local webserver

 

In this video I come to know that I can copy the layers from the web map in ArcGIS online to the web map hosting at local web server by copying a webmap id.

http://video.esri.com/watch/2254/getting-started-with-arcgis-api-for-javascript

 

As per the information provided in “LocalWebapp.md” file, I went to this link

https://github.com/jsomerville/Viewer/commit/476da3aaade082109c87496233f324d5acbef72f

I have made changes in the defaults.js as per the above mentioned link.  You can get the default.js file at https://www.dropbox.com/s/x861akavdxmbxtq/defaults.js?dl=0

I have made changes in  "extent", “title”  & "itemId"

The result of this, the extents gets smaller and it’s not reflecting the layers from web map in ArcGIS online.

 

Please correct me where I am getting wrong. Any help will be highly appreciated.

 

With best regards,

From Prashant Kuranjekar

Attachments

Outcomes