Skip to content

Commit cfff48f

Browse files
author
Jason Fox
committed
- Add CSS stylesheet link to routing and logging examples
- Add jQuery library where required - Amend button position
1 parent ba707ae commit cfff48f

File tree

12 files changed

+24
-9
lines changed

12 files changed

+24
-9
lines changed

capture-map-area/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<h1>Take a Snapshot of the Map</h1>
1616
<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>
18+
<hr/>
1819
<div id="panel" style="width: 600px;"></div>
1920
<script type="text/javascript" src='js/app.js'></script>
2021
</body>

capture-map-area/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var resultContainer = document.getElementById('panel');
6060
// Create container for the "Capture" button
6161
var containerNode = document.createElement('div');
6262
containerNode.setAttribute('style',
63-
'position:absolute;top:0;left:0;background-color:#fff; padding:10px;');
63+
'position:absolute;top:115px;left:620px;background-color:#fff; padding:10px;');
6464
containerNode.className = 'btn-group';
6565

6666
// Create the "Capture" button

finding-the-nearest-marker/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="Find a marker nearest to the click location">
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" />
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>

finding-the-nearest-marker/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ var svgMarkup = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
7171
'<text x="12" y="18" font-size="12pt" font-family="Arial" font-weight="bold" ' +
7272
'text-anchor="middle" fill="white">${REPLACE}</text></svg>';
7373

74+
//
75+
// For convenience we have included the jQuery library to iterate through the array
76+
// For more information see: http://api.jquery.com/jQuery.each/
77+
//
78+
// The jQuery library is available under an MIT license https://jquery.org/license/
79+
//
7480
$.each(coords , function (index, value) {
7581
var myIcon = new H.map.Icon(svgMarkup.replace('${REPLACE}', index + 1)),
7682
marker = new H.map.Marker(value, {icon: myIcon});

map-object-events-displayed/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Handle events on various map objects">
77
<title>Map Objects Events</title>
8+
<link rel="stylesheet" type="text/css" href="css/log.css" />
89
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
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>

map-objects-event-delegation/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Use event delegation on map objects">
77
<title>Map Objects Event Delegation</title>
8+
<link rel="stylesheet" type="text/css" href="css/log.css" />
89
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
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>

map-with-pedestrian-route-from-a-to-b/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Request a walking route from A to B and display it on the map.">
77
<title>Map with Pedestrian Route from A to B</title>
8+
<link rel="stylesheet" type="text/css" href="css/routing.css" />
89
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
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>

map-with-route-from-a-to-b-using-public-transport/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Request a route from A to B using public transport and display it on the map.">
77
<title>Map with Route from A to B using Public Transport</title>
8+
<link rel="stylesheet" type="text/css" href="css/routing.css" />
89
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
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>

map-with-route-from-a-to-b/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Request a driving route from A to B and display it on the map.">
77
<title>Map with Driving Route from A to B</title>
8+
<link rel="stylesheet" type="text/css" href="css/routing.css" />
89
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
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>

map-with-truck-route-from-a-to-b/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Request a truck route from A to B and display it on the map.">
77
<title>Map with Truck Route from A to B</title>
8+
<link rel="stylesheet" type="text/css" href="css/routing.css" />
89
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" />
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>

0 commit comments

Comments
 (0)