Skip to content

Commit 8fc437a

Browse files
committed
Change search handlers to relative paths
1 parent f4e97ba commit 8fc437a

14 files changed

Lines changed: 29 additions & 25 deletions

File tree

api/pwa/file-handling/src/main-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ mapml-viewer {
147147
</map-extent>
148148
</map-layer>
149149
</mapml-viewer>
150-
<script src="/shared/script/photon-search-handler.js"></script>
150+
<script src="../../../shared/script/photon-search-handler.js"></script>
151151
<a class="credits" href="https://www.flaticon.com/free-icons/parchment" title="parchment icons">Parchment icons created by Freepik - Flaticon</a>
152152
</div>
153153
</div>

change-projection/default-projection/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
justify-content: center;
2222
}
2323
</style>
24-
<script src="/shared/script/geogratis-search-handler.js"></script>
24+
<script src="../../shared/script/geogratis-search-handler.js"></script>
2525
</head>
2626
<body>
2727
<mapml-viewer zoom="5" lon="-97.288195" lat="56.555669" controls controlslist="search">

custom-projections/Atlas-of-Canada/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
let cProjection = map.defineCustomProjection(customProjectionDefinition);
2121
map.projection = cProjection;
2222
</script>
23-
<script src="/shared/script/geogratis-search-handler.js"></script>
23+
<script src="../../shared/script/geogratis-search-handler.js"></script>
2424
</head>
2525
<body>
2626
<mapml-viewer projection="ATLAS_POLAR_MAP" zoom="2" lat="83.48919" lon="-87.7687" controls controlslist="search">

custom-projections/BNG/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
}
9999
</style>
100100
</noscript>
101-
<script src="/shared/script/photon-search-handler.js"></script>
101+
<script src="../../shared/script/photon-search-handler.js"></script>
102102
</head>
103103
<body>
104104
<!-- when using -->

custom-projections/bc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
let cProjection = map.defineCustomProjection(customProjectionDefinition);
2121
map.projection = cProjection;
2222
</script>
23-
<script src="/shared/script/geogratis-search-handler.js"></script>
23+
<script src="../../shared/script/geogratis-search-handler.js"></script>
2424
</head>
2525
<body>
2626
<mapml-viewer zoom="3" lon="-125.667383" lat="54.60128" controls controlslist="search" projection="BCTILE">

datacube/index.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width,initial-scale=1">
6-
<title>Minimum Snow and Ice</title>
7-
<script type="module" src="../dist/mapml.js"></script>
8-
<link rel="stylesheet" href="../global.css">
9-
<script src="/shared/script/geogratis-search-handler.js"></script>
10-
</head>
11-
<body>
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width,initial-scale=1">
7+
<title>Minimum Snow and Ice</title>
8+
<script type="module" src="../dist/mapml.js"></script>
9+
<link rel="stylesheet" href="../global.css">
10+
<script src="../shared/script/geogratis-search-handler.js"></script>
11+
</head>
12+
13+
<body>
1214
<mapml-viewer projection="CBMTILE" zoom="4" lat="60" lon="-90" controls controlslist="search">
1315
<map-layer label="CBMT" src="../refactoring-temporary/cbmtile-cbmt.mapml" checked hidden></map-layer>
1416
<map-layer label="Minimum Snow and Ice" src="msi.mapml" checked opacity="0.7"></map-layer>
15-
<map-layer label="Permanent snow and ice (prob. 94% or more) WMS GetMap" src="msi-94-plus.mapml" checked></map-layer>
17+
<map-layer label="Permanent snow and ice (prob. 94% or more) WMS GetMap" src="msi-94-plus.mapml"
18+
checked></map-layer>
1619
</mapml-viewer>
17-
</body>
18-
</html>
20+
</body>
21+
22+
</html>

i18n/map-chrome-i18n/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
</map-extent>
2929
</map-layer>
3030
</mapml-viewer>
31-
<script src="/shared/script/photon-search-handler.js"></script>
31+
<script src="../../shared/script/photon-search-handler.js"></script>
3232
</body>
3333
</html>

i18n/rtl/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@
6868
</map-extent>
6969
</map-layer>
7070
</mapml-viewer>
71-
<script src="/shared/script/photon-search-handler.js"></script>
71+
<script src="../../shared/script/photon-search-handler.js"></script>
7272
</body>
7373
</html>

inline-content/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@
143143
</map-feature>
144144
</map-layer>
145145
</mapml-viewer>
146-
<script src="/shared/script/geogratis-search-handler.js"></script>
146+
<script src="../shared/script/geogratis-search-handler.js"></script>
147147
</body>
148148
</html>

inputs/map-select/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>&lt;map-select&gt; / &lt;map-option&gt; </title>
77
<script type="module" src="../../dist/mapml.js"></script>
88
<link rel="stylesheet" href="../../global.css">
9-
<script src="/shared/script/geogratis-search-handler.js"></script>
9+
<script src="../../shared/script/geogratis-search-handler.js"></script>
1010
</head>
1111
<body>
1212
<mapml-viewer projection="CBMTILE" zoom="3" lat="60.4" lon="-82.6" controls controlslist="search">

0 commit comments

Comments
 (0)