AnsweredAssumed Answered

API 3.4 Upgrade. Map tiles not appearing on startup

Question asked by myESRIUName on Apr 5, 2013
Latest reply on Apr 10, 2013 by myESRIUName
Hello all,

I've just tried to upgrade my application from 3.3 to 3.4 and find that my map is no longer being populated with tiles (even the ArcGIS Online tiles for the basemap). However, after the page and map is "loaded", if I zoom in/out in the map once the tiles subsequently load fine.

To "upgrade", I simply changed the two CSS links and one script url I was using as follows:
    : <link href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css" rel="stylesheet"> <link href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/dojo/dijit/themes/claro/claro.css" rel="stylesheet">     : <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.4"> </script>     :


I couldn't find anything in the "What's New..." documentation to suggest anything else I might be required to do or why this might be happening, except potentially the changes for AMD. However, I went through the requests being sent from the browser (using Fiddler) and all the necessary JavaScript files appear to be getting requested and returned (I can't say I went through every single one though). Also, the documentation suggests the "legacy module requires" should still work for now. So, I'm assuming that is not the problem.

When I look at the HTML that is generated by using 3.3 vs. 3.4, the first real difference I see is that the style attribute for the "Core_Map-body_layer0" DIV includes a "display: block" styling that does not appear in the 3.4 HTML generated. After that, of course, the 3.3 HTML has all the IMGs for the tiles and the 3.4 HTML does not.

Any ideas why the tiles for the map might not be getting requested on startup with the 3.4 libraries? Something to look into?

I've cleared my browser cache but that didn't help.

Cheers,
jtm

Outcomes