Skip to content

Commit 8e5a640

Browse files
committed
Merge pull request #1 from jason-fox/master
Tidying HTML and added attributions
2 parents 968321b + ba707ae commit 8e5a640

File tree

50 files changed

+216
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+216
-171
lines changed

capture-map-area/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<title>Take a Snapshot of the Map</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
</head>
1414
<body>
1515
<h1>Take a Snapshot of the Map</h1>
16-
<p><span>This example demonstrates how to take a snapshot of&nbsp;the map.&nbsp;It specifies area to be captured with&nbsp;top/left and bottom/right view port&nbsp;coordinates<br></span></p>
16+
<p><span>This example demonstrates how to take a snapshot of the map. It specifies area to be captured with top/left and bottom/right view port coordinates<br></span></p>
1717
<div id="map" style="width: 600px; height: 400px; background: grey"></div>
1818
<div id="panel" style="width: 600px;"></div>
1919
<script type="text/javascript" src='js/app.js'></script>

circle-on-the-map/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<title>Circle on the Map</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
</head>
1414
<body>
1515
<h1>Circle on the Map</h1>

custom-cluster-theme/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
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>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
13-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-clustering.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
13+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
14+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-clustering.js"></script>
1415
</head>
1516
<body>
1617
<h1>Marker Clustering with Custom Theme</h1>
17-
<p>This example displays a map&nbsp;showing geo-tagged clusters of photographs taken from locations&nbsp;around the world. The <a target="_blank" rel="nofollow" href="http://commons.wikimedia.org/wiki/Main_Page">Wikimedia Commons</a> website was used to provide&nbsp;a source of data of geo-tagged images.</p>
18+
<p>This example displays a map showing geo-tagged clusters of photographs taken from locations around the world. The <a target="_blank" rel="nofollow" href="http://commons.wikimedia.org/wiki/Main_Page">Wikimedia Commons</a> website was used to provide a source of data of geo-tagged images.</p>
1819
<div id="map" style="width: 600px; height: 400px; background: grey"></div>
1920
<script type="text/javascript" src='js/app.js'></script>
2021
</body>

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 to 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
});

custom-tile-overlay/index.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@
77
<title>Adding an Overlay to the Map</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
</head>
1414
<body>
1515
<h1>Adding an Overlay to the Map</h1>
16-
<p>This example displays a movable map initially centered on the historical centre of <b>Berlin</b> (<i>52.515, °N, 13.405°E</i>) with an overlay of a historical map from 1789 on top of the base map. A public domain&nbsp;<a target="_blank" rel="nofollow" href="http://commons.wikimedia.org/wiki/File:Map_de_berlin_1789_%28georeferenced%29.jpg">image</a> was used as a source, and split it into individual map tiles. Additional tiles are only downloaded when the zoom level or location changes.</p>
16+
<p>This example displays a movable map initially centered on the historical centre of <b>Berlin</b> (<i>52.515, °N, 13.405°E</i>) with an overlay of a historical map from 1789 on top of the base map. A public domain image was used as a source, and split it into individual map tiles. Additional tiles are only downloaded when the zoom level or location changes.</p>
1717
<div id="map" style="width: 600px; height: 400px; background: grey"></div>
18+
<hr/>
19+
<h2>Credits</h2>
20+
<blockquote>
21+
<code>Wikimedia Commons Images</code><br/>
22+
<small>
23+
The tile source is based on <a href="https://commons.wikimedia.org/wiki/File%3AMap_de_berlin_1789_%28georeferenced%29.jpg">https://commons.wikimedia.org/wiki/File%3AMap_de_berlin_1789_%28georeferenced%29.jpg</a><br/>
24+
Images provided by Wikimedia Commons are under the copyright of their owners.<br/>
25+
However, almost all content hosted on Wikimedia Commons may be freely reused subject to certain restrictions.<br/>
26+
(<a href="https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia">https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia</a>)<br/>
27+
</small>
28+
</blockquote>
1829
<script type="text/javascript" src='js/app.js'></script>
1930
</body>
2031
</html>

custom-zooming-into-bounds/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<title>Zoom into Bounds</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
</head>
1414
<body>
1515
<h1>Zoom into Bounds</h1>

display-kml-on-map/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<title>Display KML Data</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-data.js"></script>
1414
</head>
1515
<body>

draggable-marker/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<title>Draggable Marker</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
</head>
1414
<body>
1515
<h1>Draggable Marker</h1>
16-
<p>This example displays a moveable map of&nbsp;<b>Boston</b>, including a marker. The marker can also be moved around the map.</p>
16+
<p>This example displays a moveable map of <b>Boston</b>, including a marker. The marker can also be moved around the map.</p>
1717
<div id="map" style="width: 600px; height: 400px; background: grey"></div>
1818
<script type="text/javascript" src='js/app.js'></script>
1919
</body>

explore-places/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<title>Explore Popular Places by Category</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
13-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-places.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
13+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-places.js"></script>
1414
</head>
1515
<body>
1616
<h1>Explore Popular Places by Category</h1>
17-
<p>This example uses the <code>explore</code> entrypoint to find places by using categories without typing search queries. It looks for sights and museums (i.e. within the <code>sights-museums</code> category) , around the <b>Brandenburg Gate</b> (52.5159°N, 13.3777°E) in <b>Berlin</b>. For more information about available parameters and options&nbsp;visit&nbsp;<a target="_blank" rel="nofollow" href="http://developer.here.com/rest-apis/documentation/places/topics_api/resource-explore.html">Explore Entrypoint Places API documentation</a>.</p>
17+
<p>This example uses the <code>explore</code> entrypoint to find places by using categories without typing search queries. It looks for sights and museums (i.e. within the <code>sights-museums</code> category) , around the <b>Brandenburg Gate</b> (52.5159°N, 13.3777°E) in <b>Berlin</b>. For more information about available parameters and options visit <a target="_blank" rel="nofollow" href="http://developer.here.com/rest-apis/documentation/places/topics_api/resource-explore.html">Explore Entrypoint Places API documentation</a>.</p>
1818
<div id="map" style="width: 600px; height: 400px; background: grey"></div>
1919
<div id="panel" style="width: 600px;"></div>
2020
<script type="text/javascript" src='js/app.js'></script>

finding-the-nearest-marker/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<title>Finding the Nearest Marker</title>
88
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
99
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
1313
</head>
1414
<body>
1515
<h1>Finding the Nearest Marker</h1>

0 commit comments

Comments
 (0)