Skip to content

Commit d9a6d14

Browse files
author
Jason Fox
committed
Add jQuery <script> to header and reference the jQuery website and link to its MIT license.
1 parent 0a61b6a commit d9a6d14

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

custom-cluster-theme/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta name="description" content="Cluster multiple markers and customize the theme">
77
<title>Marker Clustering with Custom Theme</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
9+
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
910
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
1011
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
1112
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>

custom-cluster-theme/js/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,13 @@ function getBubbleContent(data) {
193193
].join('');
194194
}
195195

196-
// Step 5: request data that will be visualized on a map
196+
// Step 5: Request data that will be visualized on a map.
197+
//
198+
// For convenience we have included the jQuery library make an AJAX call to do this.
199+
// For more information see: http://api.jquery.com/jQuery.getJSON/
200+
//
201+
// The jQuery library is available under an MIT license https://jquery.org/license/
202+
//
197203
jQuery.getJSON('data/photos.json', function (data) {
198204
startClustering(map, ui, getBubbleContent, data);
199205
});

marker-clustering/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta name="description" content="Cluster multiple markers together to better visualize the data">
77
<title>Marker Clustering</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
9+
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
910
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
1011
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
1112
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>

marker-clustering/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ var behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));
6262
var ui = H.ui.UI.createDefault(map, defaultLayers);
6363

6464
// Step 5: request a data about airports's coordinates
65+
//
66+
// For convenience we have included the jQuery library make an AJAX call to do this.
67+
// For more information see: http://api.jquery.com/jQuery.getJSON/
68+
//
69+
// The jQuery library is available under an MIT license https://jquery.org/license/
70+
//
6571
jQuery.getJSON('data/airports.json', function (data) {
6672
startClustering(map, data);
6773
});

0 commit comments

Comments
 (0)