Skip to content

Instantly share code, notes, and snippets.

@ca0v
Last active August 29, 2015 14:09
Show Gist options
  • Save ca0v/061dcd71bd95014b6006 to your computer and use it in GitHub Desktop.
Save ca0v/061dcd71bd95014b6006 to your computer and use it in GitHub Desktop.
ArcGIS Javascript API Debugging Configuration
<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