@trailstash/ultra 4.3.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +2 -0
- package/MapLibre-Examples/color-relief.ultra +58 -0
- package/components/button-modal.js +8 -9
- package/components/code-editor.js +2 -0
- package/components/export-modal.js +282 -0
- package/components/fontawesome-icon.js +4 -0
- package/components/share-modal.js +4 -0
- package/components/ultra-ide.js +55 -13
- package/components/ultra-map.js +38 -10
- package/config.mjs +1 -1
- package/docs/assets/MapLibre-Examples/color-relief.png +0 -0
- package/docs/further-reading.md +1 -1
- package/docs/open-with-ultra.md +94 -0
- package/docs/style.md +2 -2
- package/docs/url-parameters.md +1 -1
- package/docs/yaml.md +23 -1
- package/index.html +11 -3
- package/index.js +1 -1
- package/lib/htmlExport.js +74 -0
- package/lib/localStorage.js +0 -3
- package/lib/queryProviders/geojson.js +2 -2
- package/lib/queryProviders/gpx.js +2 -2
- package/lib/queryProviders/kml.js +2 -2
- package/lib/queryProviders/raster.js +2 -2
- package/lib/queryProviders/tcx.js +2 -2
- package/lib/queryProviders/util.js +2 -2
- package/lib/queryProviders/vector.js +21 -18
- package/lib/sandbox.js +93 -0
- package/lib/style.js +3 -3
- package/og:image.ultra +44 -0
- package/package.json +2 -1
- package/pages-config.mjs +12 -0
- package/static/og:image.png +0 -0
package/lib/style.js
CHANGED
|
@@ -58,10 +58,10 @@ export async function getStyle(style, source) {
|
|
|
58
58
|
// If the layer exists, merge with defined layer, remove from layers, and default to
|
|
59
59
|
// reinserting it at the same index
|
|
60
60
|
if (curLayerIdx >= 0) {
|
|
61
|
-
newLayer = {
|
|
61
|
+
newLayer = movePaintAndLayoutKeys({
|
|
62
62
|
...layers[curLayerIdx],
|
|
63
|
-
...
|
|
64
|
-
};
|
|
63
|
+
...layer,
|
|
64
|
+
});
|
|
65
65
|
layerIdx = curLayerIdx;
|
|
66
66
|
layers.splice(curLayerIdx, 1);
|
|
67
67
|
}
|
package/og:image.ultra
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
options:
|
|
3
|
+
attributionControl: {}
|
|
4
|
+
bounds:
|
|
5
|
+
- -140.625
|
|
6
|
+
- -29.840643
|
|
7
|
+
- 70.664062
|
|
8
|
+
- 60.759159
|
|
9
|
+
controls:
|
|
10
|
+
- type: HTMLControl
|
|
11
|
+
options:
|
|
12
|
+
html: >
|
|
13
|
+
<div class="cover">Ultra <img src="./logo.svg"></div>
|
|
14
|
+
css: >
|
|
15
|
+
.cover {
|
|
16
|
+
pointer-events: all;
|
|
17
|
+
background: rgba(255,255,255,0.5);
|
|
18
|
+
position: fixed;
|
|
19
|
+
text-align: center;
|
|
20
|
+
line-height: 100vh;
|
|
21
|
+
font-size: 128px;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
right: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
backdrop-filter: blur(5px);
|
|
28
|
+
-webkit-backdrop-filter: blur(5px);
|
|
29
|
+
}
|
|
30
|
+
.cover img {
|
|
31
|
+
height: 176px;
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
}
|
|
34
|
+
style:
|
|
35
|
+
layers:
|
|
36
|
+
- id: geolines
|
|
37
|
+
visibility: none
|
|
38
|
+
- id: geolines-label
|
|
39
|
+
visibility: none
|
|
40
|
+
- id: countries-label
|
|
41
|
+
visibility: none
|
|
42
|
+
extends: https://demotiles.maplibre.org/style.json
|
|
43
|
+
---
|
|
44
|
+
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "5.0.1",
|
|
7
7
|
"description": "A web based tool for making MapLibre GL maps with data from sources such as Overpass, GeoJSON, GPX, KML, TCX, etc",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.6.1",
|
|
46
46
|
"@unvt/sprite-one": "github:dschep/sprite-one",
|
|
47
|
+
"emoji-datasource-google": "^15.1.2",
|
|
47
48
|
"esbuild-jest": "^0.5.0",
|
|
48
49
|
"jest": "^29.7.0",
|
|
49
50
|
"jest-environment-jsdom": "^29.7.0",
|
package/pages-config.mjs
ADDED
|
Binary file
|