Skip to content

Commit e0ca8e6

Browse files
committed
Merge pull request #2 from jason-fox/master
Add CSS stylesheet link to routing and logging examples
2 parents 8e5a640 + 9b92702 commit e0ca8e6

File tree

13 files changed

+24
-12
lines changed

13 files changed

+24
-12
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

custom-cluster-theme/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
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>
9+
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.3.min.js"
10+
integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo="
11+
crossorigin="anonymous"></script>
1012
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
1113
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
1214
<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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ 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-
$.each(coords , function (index, value) {
74+
coords.forEach(function (value, index) {
7575
var myIcon = new H.map.Icon(svgMarkup.replace('${REPLACE}', index + 1)),
7676
marker = new H.map.Marker(value, {icon: myIcon});
7777
// add custom data to the marker

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)