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.
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!
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.
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>
Hello
What is your webmap id so we can test on our end.
Thanks!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.