Skip to content

Commit 768c560

Browse files
authored
Merge pull request #85 from ttobis/master
Removed leftovers of useHTTPS and useCIT. Added mapsjs-ui.css to poly…
2 parents 1df2980 + 5d05ec7 commit 768c560

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed

custom-cluster-theme/demo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ function onMarkerClick(e) {
143143
// Step 1: initialize communication with the platform
144144
// In your own code, replace variable window.apikey with your own apikey
145145
var platform = new H.service.Platform({
146-
apikey: window.apikey,
147-
useHTTPS: true
146+
apikey: window.apikey
148147
});
149148
var defaultLayers = platform.createDefaultLayers();
150149

custom-tile-overlay/demo.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ function overlayHistoricalBerlin(map) {
5454
// Step 1: initialize communication with the platform
5555
// In your own code, replace variable window.apikey with your own apikey
5656
var platform = new H.service.Platform({
57-
apikey: window.apikey,
58-
useHTTPS: true,
59-
useCIT: true
57+
apikey: window.apikey
6058
});
6159
var defaultLayers = platform.createDefaultLayers();
6260

@@ -78,4 +76,4 @@ var behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));
7876
var ui = H.ui.UI.createDefault(map, defaultLayers);
7977

8078
// Step 5: Main logic goes here
81-
overlayHistoricalBerlin(map);
79+
overlayHistoricalBerlin(map);

example-template/demo.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ function capture(resultContainer, map, ui) {
2727
// Step 1: initialize communication with the platform
2828
// In your own code, replace variable window.apikey with your own apikey
2929
var platform = new H.service.Platform({
30-
apikey: window.apikey,
31-
useHTTPS: true,
32-
useCIT: true
30+
apikey: window.apikey
3331
});
3432
var defaultLayers = platform.createDefaultLayers();
3533

@@ -77,4 +75,4 @@ mapContainer.appendChild(containerNode);
7775
// Step 7: Handle capture button click event
7876
captureBtn.onclick = function() {
7977
capture(resultContainer, map, ui);
80-
};
78+
};

map-with-route-from-a-to-b-using-public-transport/demo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ var mapContainer = document.getElementById('map'),
6666
//Step 1: initialize communication with the platform
6767
// In your own code, replace variable window.apikey with your own apikey
6868
var platform = new H.service.Platform({
69-
apikey: window.apikey,
70-
useHTTPS: true
69+
apikey: window.apikey
7170
});
7271
var defaultLayers = platform.createDefaultLayers();
7372

polygon-on-the-map/demo.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
<head>
44
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
6-
6+
77
<title>Polygon on the Map</title>
8+
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
89
<link rel="stylesheet" type="text/css" href="demo.css" />
910
<link rel="stylesheet" type="text/css" href="styles.css" />
1011
<link rel="stylesheet" type="text/css" href="../template.css" />
11-
<script type="text/javascript" src='../test-credentials.js'></script>
12+
<script type="text/javascript" src='../test-credentials.js'></script>
1213
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
1314
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
1415
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
@@ -23,8 +24,8 @@ <h1>Polygon on the Map</h1>
2324
<p>This example displays a polygon covering part of Western Europe displayed on a moveable map.</p>
2425
<div id="map"></div>
2526
<h3>Code</h3>
26-
<p>A polygon is created using the <code>H.map.Polygon</code> class,
27-
passing in an <code>H.geo.LineString</code> holding the vertices of the polygon. The look-and-feel of the
27+
<p>A polygon is created using the <code>H.map.Polygon</code> class,
28+
passing in an <code>H.geo.LineString</code> holding the vertices of the polygon. The look-and-feel of the
2829
polygon can be altered by adding the <code>style</code> parameter</p>
2930
<script type="text/javascript" src='demo.js'></script>
3031
</body>

0 commit comments

Comments
 (0)