Skip to content

Commit

Permalink
3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
driskull committed Jul 21, 2014
1 parent 0129602 commit 6d5cef9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"undef": true,
"browser":true,
"devel":true,
"globals": { "require": false, "define":false }
}
15 changes: 6 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<title>heatmap.js ArcGIS JavaScript API Heatmap Layer</title>
<link rel="shortcut icon"
type="image/png" href="http://www.patrick-wied.at/img/favicon.png" />
<link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.8/js/esri/css/esri.css" />
<link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.10/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" />
<style>
body, html {
margin:0;
Expand Down Expand Up @@ -79,7 +79,7 @@
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);
}
</style>
<link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.8/js/esri/dijit/css/Popup.css"/>
<link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.10/js/esri/dijit/css/Popup.css"/>
</head>
<body class="claro">
<div id="main">
Expand Down Expand Up @@ -118,7 +118,7 @@ <h2>Description</h2>
<h2>Instructions</h2>

<ol>
<li>Include the heatmap.js in your HTML document and require "modules/HeatmapLayer" <pre>
<li>Include the heatmap.js in your HTML document and require "application/HeatmapLayer" <pre>
&lt;script type=&quot;text/javascript&quot; src=&quot;src/heatmap.js&quot;&gt;&lt;/script&gt;
</pre>

Expand Down Expand Up @@ -227,10 +227,9 @@ <h2>Dependencies</h2>
var locationPath = location.pathname.replace(pathRegex, '');
// Dojo Config
var dojoConfig = {
parseOnLoad: true,
packages: [
{
name: "modules",
name: "application",
location: locationPath + 'src/'
}
]
Expand All @@ -240,17 +239,15 @@ <h2>Dependencies</h2>
<script type="text/javascript" src="src/heatmap.js"></script>
<script type="text/javascript">
require([
"dojo/_base/lang",
"esri/map",
"dojo/on",
"dojo/dom",
"esri/layers/FeatureLayer",
"modules/HeatmapLayer",
"application/HeatmapLayer",
"esri/tasks/query",
"esri/geometry/Extent",
"dojo/domReady!"
], function(
lang,
Map,
on,
dom,
Expand Down
3 changes: 1 addition & 2 deletions src/HeatmapLayer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global heatmapFactory */

define([
"dojo/_base/declare",
"dojo/_base/lang",
Expand All @@ -22,7 +21,7 @@ define([
screenUtils,
Point
) {
return declare("modules.HeatmapLayer", [_WidgetBase, DynamicMapServiceLayer], {
return declare([_WidgetBase, DynamicMapServiceLayer], {
options: {
useLocalMaximum: false,
map: null,
Expand Down

0 comments on commit 6d5cef9

Please sign in to comment.