Last active
August 29, 2015 14:09
-
-
Save ca0v/061dcd71bd95014b6006 to your computer and use it in GitHub Desktop.
ArcGIS Javascript API Debugging Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>ArcGIS Javascript API Debugging Configuration</title> | |
<link rel="stylesheet" href="http://localhost:84/arcgis_js_api/esri/css/esri.css"> | |
<style> | |
html, body, #map { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
background-color: #FFF; | |
overflow: hidden; | |
font-family: "Trebuchet MS"; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script src="../dojo/dojo.js"></script> | |
<script> | |
require({ | |
packages: [ { | |
name: "esri", | |
location: "http://localhost:84/arcgis_js_api/esri" | |
}] | |
}); | |
require(["esri/kernel"], function (kernel) { | |
console.log("kernel: ", JSON.stringify(kernel)); | |
var map; | |
require(["esri/map", "dojo/domReady!"], function(Map) { | |
map = new Map("map", { | |
basemap: "topo", | |
center: [-122.45, 37.75], // longitude, latitude | |
zoom: 13 | |
}); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment