There is one error (red X symbol) saying : "Uncaught exception : Could not load cross-domain resource : dojox.gfx.svg"
There are also several warnings (! inside a yellow triangle) about the tundra.css file :
- Messages like "Expected declaration, but found #zoom. Moving to the next declaration" with the "#zoom" element being replaced with #display, #vertical-align, #overflow, #filter, #text-indent, #letter-spacing, #text-align, #bottom, #background, #background-image...
- Messages like "Property "zoom" unknown. Declaration abandonned." with the "zoom" element being replaced with transform, transform-origin, filter, resize, moz-opacity, padding, text-overflow, top, border-radius...
I don't really know what to do with those infos...
Thanks again for your help!
Are you sure your local api is working? I would check the following things to test
1. Switch to the ArcGIS online api. DOes the map work? if so, you have an error in your api installation. If not you have an error in your map code
2. If your api installation is the problem, browse to one of the files in a webbrowser. for example, at http://hoboken:8084/arcgis_js_api/li...cgis/index.jsp I get a
printout of alot of code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Simple Map</title> <link rel="stylesheet" type="text/css" href="http://server1/project1/arcgis_js_api/library/2.6/js/dojo/dijit/themes/tundra/tundra.css"> <script type="text/javascript" src="http://server1/project1/arcgis_js_api/library/2.6/arcgis"></script> <script type="text/javascript"> dojo.require("esri.map"); function init() { var myMap = new esri.Map("mapDiv"); var myTiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server1/ArcGIS/rest/services/cacheVecto/MapServer"); myMap.addLayer(myTiledMapServiceLayer); } dojo.addOnLoad(init); </script> </head> <body class="tundra"> <div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"></div> </body> </html>
<script type="text/javascript" src="http://server1/project1/arcgis_js_api/library/2.6/arcgis"></script>
HTTP 404 ERROR, in the web browser
But the index.jsp file seems to be in the correct directory, aka C:/Inetpub/wwwroot/project1/arcgis_js_api/library/2.6/arcgis
But the index.jsp file seems to be in the correct directory, aka C:/Inetpub/wwwroot/project1/arcgis_js_api/library/2.6/arcgis
Well thats definately the problem, until you can access that project via the web, the api wont work.
CAn you get to it via localhost on that machine?