Select to view content in your preferred language

Why won't ArcGIS API for JavaScript Sandbox page display my web map?

2404
4
Jump to solution
07-15-2014 06:16 PM
by Anonymous User
Not applicable

Going through the Tutorials | ArcGIS API for JavaScript and tried to display my map using the template code in the sandbox site (ArcGIS API for JavaScript Sandbox‌), but it won't take. I made sure my web map was public and I got someone else to test it as well.

1 Solution

Accepted Solutions
AlexanderNohe1
Honored Contributor

Hi Ben Gardner‌,

I was able to reproduce the same behavior using your webmap.  I saved a copy of your webmap and was able to reproduce there as well.

When watching the network traffic, I noticed that it was running into some trouble reading a directory on your ArcGIS Server.

I hope this helps!

View solution in original post

0 Kudos
4 Replies
AlexanderNohe1
Honored Contributor

Hello

What is your webmap id so we can test on our end.

Thanks!

0 Kudos
by Anonymous User
Not applicable

map ID: acae825ec19046f1b1923d24e435f30a

Here's the code:

<!DOCTYPE html>

  <html>

  <head>

  <title>Create a Web Map</title>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.10/js/esri/css/esri.css">

  <style>

    html,body,#mapDiv,.map.container{

      padding:0;

      margin:0;

      height:100%;

    }

  </style>

  <script>var dojoConfig = { parseOnLoad:true };</script>

  <script src="http://js.arcgis.com/3.10compact/"></script>

  <script>

    var map;

    require([

        "esri/map",

        "esri/arcgis/utils",

        "dojo/domReady!"

        ], function(Map, arcgisUtils){

        arcgisUtils.createMap("acae825ec19046f1b1923d24e435f30a", "mapDiv").then(function (response) {

            map = response.map;  

        });

    });

  </script>

  </head>

  <body>

    <div id="mapDiv"></div>

  </body>

  </html>

0 Kudos
AlexanderNohe1
Honored Contributor

Hi Ben Gardner‌,

I was able to reproduce the same behavior using your webmap.  I saved a copy of your webmap and was able to reproduce there as well.

When watching the network traffic, I noticed that it was running into some trouble reading a directory on your ArcGIS Server.

I hope this helps!

0 Kudos
by Anonymous User
Not applicable

Hmm. I wonder if it's because I imported a base map from our internal web server when I initially put the map together.

Thanks Alexander. Gives me a little more insight into the ArcGIS API.

0 Kudos