File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed
Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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+ //
197203jQuery . getJSON ( 'data/photos.json' , function ( data ) {
198204 startClustering ( map , ui , getBubbleContent , data ) ;
199205} ) ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -62,6 +62,12 @@ var behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));
6262var 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+ //
6571jQuery . getJSON ( 'data/airports.json' , function ( data ) {
6672 startClustering ( map , data ) ;
6773} ) ;
You can’t perform that action at this time.
0 commit comments