Select to view content in your preferred language

Unable to create map using Basicviewer from my local server

9586
25
02-10-2013 06:32 PM
HelenYang
Emerging Contributor
Hi,

I've created a map from ArcGIS online using my own arcgis server services, shared the map with everyone, and even publish a web application using the Basic viewer template from ArcGISOnline.

However, when I downloaded the bisicviewer template to create a web application from the local web server, I got the error message - Unable to create map: "Unable to load http://localhost/sharing/content/items/xxxxxxx?f=json status:404".

I understand 404 meaning the web page not found. It could be security related, as my server is behind the firewall and proxy. So I set up a proxy page according to the http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy, although I am not sure if my proxy setup is correct. How do I know if my proxy page setup correctly?

Could any one suggest what I should do to bypass the error? Did I miss something in setting the web page. I didn't modify anything in index.html but the WebmapID, then copied to the IIS root folder.

Thank you very much in advance.

Helen
Tags (2)
0 Kudos
25 Replies
KellyHutchins
Esri Frequent Contributor
The editor template just needs to have the sharing url set. To do this open the index.html file in a text editor and modify line 49 to read as follows:
  sharingurl : "http://www.arcgis.com/sharing/rest/content/items"


I am having the same problem with the Edit Web app template. I just downloaded it today.



After finding this forum I tried the basic viewer linked to by Kelly, changed the key and that worked just fine... Is it possible we can get an updated version of the Edit app?
0 Kudos
DanielEisenberg
Occasional Contributor
Thank you, Kelly. The web app now loads my test AGOL without errors.

However, it says that there are no editable layers. Can you tell me how I can set this to edit? I set up my arcgis.com map to have an editable layer before I downloaded the Edit app.

-Daniel
0 Kudos
KellyHutchins
Esri Frequent Contributor
The template requires that you have at least one feature service layer with editing enabled in your web map in order to enable the editing functionality.

Kelly


Thank you, Kelly. The web app now loads my test AGOL without errors.

However, it says that there are no editable layers. Can you tell me how I can set this to edit? I set up my arcgis.com map to have an editable layer before I downloaded the Edit app.

-Daniel
0 Kudos
davidwray
Emerging Contributor
Is your geocode service public? If so can  you send the link and the address you were trying to find?


The service URL is http://arcgisweb.roanokecountyva.gov/arcgisweb/rest/services/Locators/COMPOSITE_ADDRESS_WGS84/Geocod...

i was using 5925 Cove Rd

The application located the address, but does zoom in when using the arcgisonline geocoding service.  Thanks for your help.

David
0 Kudos
KellyHutchins
Esri Frequent Contributor
David,

There's a typo in the template at ~ line 1319 of layout.js. In the code where the geocoder is created and the constructor options are specified we had geocoder when it should be geocoders.  Update this file and your geocoder should find and zoom to locations.



    var geocoder = new esri.dijit.Geocoder({
        map: map,
        geocoders: geocoder,
        theme: "simpleGeocoder",
        arcgisGeocoder: geocodeOptions
    }, "webmap-toolbar-right");
    geocoder.startup();
0 Kudos
AnnAdelsberger
New Contributor
The app is looking for your arcgis.com content in the wrong location. Looks like we forgot to set a path to point it to www.arcgis.com in the download version of the template. I've attached a zip file of the updated version that should fix this problem.


I am having the same problem with the Map Tour template. Is there an update for that template?
0 Kudos