Skip to content

Commit 6c4305d

Browse files
author
Konstantin Plotnikov
committed
Fixed relative in examples
Signed-off-by: Konstantin Plotnikov <[email protected]>
1 parent b40f846 commit 6c4305d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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 'https://heremaps.github.io/maps-api-for-javascript-examples/custom-tile-overlay/tiles/blank.png';
21+
return './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 'https://heremaps.github.io/maps-api-for-javascript-examples/custom-tile-overlay/tiles/'+ zoom+ '/'+ row + '/'+ column+ '.png';
26+
return './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('https://heremaps.github.io/maps-api-for-javascript-examples/display-kml-on-map/data/us-states.kml');
11+
reader = new H.data.kml.Reader('./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

0 commit comments

Comments
 (0)