Skip to content

Commit 7261db4

Browse files
Peter Rushforthprushforth
authored andcommitted
Restructure dist into per-engine subfolders; add MapLibre demos
Move the Leaflet build from dist/ to dist/MapML.js/dist/ and add the MapLibre GL build under dist/MapML-MapLibre/dist/, so the two dist auto-syncs target disjoint subtrees and no longer clobber each other. Update all experiment references to dist/MapML.js/dist/mapml.js. Add rendering-engine/ demos rendering identical MapML markup in both engines (progressive enhancement + graceful degradation), plus a globe/ experiment. .gitignore ignores dist/* but tracks the two engine subtrees. Incidental: add zoom-in/zoom-out icons for the custom-map-ui demo.
1 parent 8997079 commit 7261db4

84 files changed

Lines changed: 71108 additions & 523 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/dist/
1+
/dist/*
2+
!/dist/MapML.js/
3+
!/dist/MapML-MapLibre/

api/custom-map-ui/bootstrap-ui.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<title>Using Bootstrap</title>
7-
<script type="module" src="../../dist/mapml.js"></script>
7+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
88
<link rel="stylesheet" href="../../global.css">
99
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
1010
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
@@ -54,10 +54,10 @@ <h3>Layers</h3>
5454

5555
<div class="zoom-controls">
5656
<input style="width: 30px;height: 30px;" type="image"
57-
src="https://icons-for-free.com/iconfiles/png/512/zoom+icon-1320196833813829308.png"
57+
src="zoom-in.png"
5858
onclick="CustomUI.zoomIn()"></br>
5959
<input style="width: 30px;height: 30px;" type="image"
60-
src="https://cdn.iconscout.com/icon/premium/png-512-thumb/zoom-out-1692048-1486701.png"
60+
src="zoom-out.png"
6161
onclick="CustomUI.zoomOut()">
6262
</div>
6363
</figcaption>

api/custom-map-ui/custom-css-ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<title>Using Bootstrap</title>
7-
<script type="module" src="../../dist/mapml.js"></script>
7+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
88
<link rel="stylesheet" href="../../global.css">
99
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
1010
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">

api/custom-map-ui/geolocation-search-ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
1010
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
1111

12-
<script type="module" src="../../dist/mapml.js"></script>
12+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
1313
<link href="../../shared/css/geo-search.css" rel="stylesheet">
1414
</head>
1515
<body>

api/custom-map-ui/geoname-search-ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
1010
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
1111

12-
<script type="module" src="../../dist/mapml.js"></script>
12+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
1313
<link href="../../shared/css/geo-search.css" rel="stylesheet">
1414
</head>
1515
<body>

api/custom-map-ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<title>custom-ui home</title>
7-
<script type="module" src="../../dist/mapml.js"></script>
7+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
88
<link rel="stylesheet" href="../../global.css">
99
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
1010
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">

api/custom-map-ui/zoom-in.png

118 KB
Loading

api/custom-map-ui/zoom-out.png

77.4 KB
Loading

api/geojson/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<title>GeoJSON API Demo</title>
7-
<script type="module" src="../../dist/mapml.js"></script>
7+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
88
<link rel="stylesheet" href="../../global.css">
99
<map-style hidden>
1010
.a {

api/map-feature/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<meta name="color-scheme" content="dark light">
77
<title>&lt;map-feature&gt; API</title>
8-
<script type="module" src="../../dist/mapml.js"></script>
8+
<script type="module" src="../../dist/MapML.js/dist/mapml.js"></script>
99
<style>
1010
body {
1111
font-family: 'system-ui', sans-serif;

0 commit comments

Comments
 (0)