Skip to content

Commit c5b0297

Browse files
authored
Merge pull request #55 from kplotnik/master
Fixed absolute paths for the JsFiddle
2 parents e86abd2 + 949522d commit c5b0297

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

change-style-at-load/demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function setStyle(map){
99
// First argument is the style path and the second is the base URL to use for
1010
// resolving relative URLs in the style like textures, fonts.
1111
// all referenced resources relative to the base path https://js.api.here.com/v3/3.1/styles/omv.
12-
var style = new H.map.Style('./data/dark.yaml', 'https://js.api.here.com/v3/3.1/styles/omv/');
12+
var style = new H.map.Style('https://heremaps.github.io/maps-api-for-javascript-examples/change-style-at-load/data/dark.yaml',
13+
'https://js.api.here.com/v3/3.1/styles/omv/');
1314
// set the style on the existing layer
1415
provider.setStyle(style);
1516
}

custom-tile-overlay/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ function overlayHistoricalBerlin(map) {
1818
((zoom == 13) && (row < 2686 || column < 4400 || row > 2687 || column > 4401)) ||
1919
((zoom == 14) && (row < 5372 || column < 8800 || row > 5375 || column > 8803)) ||
2020
((zoom == 15) && (row < 10744 || column < 17601 || row > 10750 || column > 17607))) {
21-
return './tiles/blank.png';
21+
return 'https://heremaps.github.io/maps-api-for-javascript-examples/custom-tile-overlay/tiles/blank.png';
2222
} else {
2323
// The Old Berlin Map Tiler follows the TMS URL specification.
2424
// By specification, tiles should be accessible in the following format:
2525
// http://server_address/zoom_level/x/y.png
26-
return './tiles/'+ zoom+ '/'+ row + '/'+ column+ '.png';
26+
return 'https://heremaps.github.io/maps-api-for-javascript-examples/custom-tile-overlay/tiles/'+ zoom+ '/'+ row + '/'+ column+ '.png';
2727
}
2828
}
2929
});

display-kml-on-map/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
function renderKML(map) {
1010
// Create a reader object passing in the URL of our KML file
11-
reader = new H.data.kml.Reader('./data/us-states.kml');
11+
reader = new H.data.kml.Reader('https://heremaps.github.io/maps-api-for-javascript-examples/display-kml-on-map/data/us-states.kml');
1212
reader.addEventListener("statechange", function(evt){
1313
if (evt.state === H.data.AbstractReader.State.READY) {
1414
// Get KML layer from the reader object and add it to the map

image-overlay/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var rainRadar = [];
6161
for (; i <= 10; i++) {
6262
img = new Image();
6363
img.crossOrigin = 'anonymous';
64-
img.src = './data/' + i + '.png';
64+
img.src = 'https://heremaps.github.io/maps-api-for-javascript-examples/image-overlay/data/' + i + '.png';
6565
rainRadar.push(img);
6666
}
6767
}());

0 commit comments

Comments
 (0)