Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have been trying to use the updated ArcGIS API for Javascript, with ArcGIS Online. I have been testing with the sample code found on the "Create web map by ID" page:

http://developers.arcgis.com/en/javascript/jssamples/ags_createwebmapid.html

If I download that and try to run it in Firefox, without making any changes, then the map does not show up and I get the following error reported in Firebug:

Error: Unable to load the base map layer
[Break On This Error]   

...);}},_getKind:function(_2ff){var _300=this._trackManager;if(_300){return _300.is...

utils.js (line 19)

The sample runs fine on the http://developers.arcgis.com/ site, I'm not sure why it would be failing for me. I am not accessing the web through a proxy.

Thanks.

share|improve this question

2 Answers 2

Works fine after I changed the relative reference to layout.css -- cheers!

<link rel="stylesheet" href="css/layout.css">

to

<link rel="stylesheet" href="http://developers.arcgis.com/en/javascript/samples/ags_createwebmapid/css/layout.css">
share|improve this answer
    
I tried that, but it didn't work. I'm still getting the same issue on the base map layer. –  Seth P. Apr 10 '13 at 16:12
1  
Can you get other samples to work on your test platform? Different browsers? –  awesomo Apr 10 '13 at 16:23
    
I also tested in IE and Chrome. I did try the sample for developers.arcgis.com/en/javascript/jssamples/map_simple.html and that one is working correctly. However, it is not using an ArcGIS Online map. –  Seth P. Apr 10 '13 at 16:56
    
What about this one where you "Create web map using JSON"? Not using a proxy there either, but it does reference a base map... developers.arcgis.com/en/javascript/jssamples/… –  awesomo Apr 10 '13 at 22:36
    
That one is working also. I'm trying to figure out why I'm getting the different behavior. –  Seth P. Apr 11 '13 at 19:47
up vote 2 down vote accepted

I was able to find an ArcGIS forum post for a similar issue:

http://forums.arcgis.com/threads/54811-Proxy-page-error-using-editor-widgit

The directions for creating a proxy page for viewing ArcGIS Online maps can be found here:

http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_proxy.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.