@trailstash/ultra 3.1.0-beta2 → 3.1.0-beta4

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/README.md CHANGED
@@ -3,28 +3,37 @@
3
3
  Ultra is a web-application made to simplify making maps with [MapLibre GL
4
4
  JS](https://maplibre.org).
5
5
 
6
- [Overpass Ultra](https://overpass-ultra.us) is the main deployment of Ultra.
6
+ ## Deployments
7
7
 
8
- The customization of the map complies with an [extended](https://overpass-ultra.us/docs/style#ultra-maplibre-styles) version
9
- of the the [MapLibre Style Spec](https://maplibre.org/maplibre-style-spec/).
8
+ - Production version - [overpass-ultra.us](https://overpass-ultra.us) <small>([config](https://gitlab.com/trailstash/overpass-ultra/-/blob/main/config.js))</small>
9
+ - Development Version - [ultra.trailsta.sh](https://ultra.trailsta.sh) <small>([config](./config.js))</small>
10
+ - OHM version - [ohm.overpass-ultra.us](https://ohm.overpass-ultra.us) <small>([config](https://gitlab.com/trailstash/ohm-ultra/-/blob/main/config.js))</small>
10
11
 
11
12
  ## Documentation
12
13
 
13
- The documentation for Overpass Ultra is available at <a target="_blank" href="https://overpass-ultra.us/docs/">overpass-ultra.us/docs</a>.
14
- The only difference between the base Ultra configuration and Overpass Ultra is that Overpass Ultra
15
- defaults to `type: overpass`.
14
+ The documentation for Ultra is available at <a target="_blank" href="/docs/">/docs</a>.
16
15
 
17
16
  ## Configuration
18
17
 
19
18
  Various aspects of Ultra, such as styling, can be
20
- configured via [YAML front-matter](https://overpass-ultra.us/docs/yaml).
19
+ configured via [YAML front-matter](/docs/yaml).
20
+
21
+ ## Overpass Queries
22
+
23
+ Overpass API allows to query for OSM data by your own search criteria. For this purpose, it has a
24
+ specifically crafted query language: [Overpass
25
+ QL](https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL)
26
+
27
+ In addition to regular Overpass API queries one can use `{{bbox}}` to specify the bounding box
28
+ coordinates of the current map view.
21
29
 
22
30
  ## Styling
23
31
 
24
- Ultra supports styling using the [MapLibre Style
25
- Specification](https://maplibre.org/maplibre-style-spec/).
32
+ Ultra supports styling using an
33
+ [extended](/docs/style#ultra-maplibre-styles) version of the the [MapLibre
34
+ Style Spec](https://maplibre.org/maplibre-style-spec/).
26
35
 
27
- See the [Styling](https://overpass-ultra.us/docs/style) section for more information.
36
+ See the [Styling](/docs/style) section for more information.
28
37
 
29
38
  ## About
30
39
 
package/cli/build.js CHANGED
@@ -64,7 +64,7 @@ export default class Build extends Command {
64
64
  fs.readFileSync(path.join(ultraRoot, "index.html")),
65
65
  await getHTMLContext(config),
66
66
  );
67
- fs.mkdirSync("dist", { recursive: true});
67
+ fs.mkdirSync("dist", { recursive: true });
68
68
  fs.writeFileSync("dist/index.html", html);
69
69
 
70
70
  await build(buildOptions(config));
package/cli/serve.js CHANGED
@@ -35,7 +35,7 @@ export default class Serve extends Command {
35
35
  fs.readFileSync(path.join(ultraRoot, "index.html")),
36
36
  await getHTMLContext(config),
37
37
  );
38
- fs.mkdirSync("dist", { recursive: true});
38
+ fs.mkdirSync("dist", { recursive: true });
39
39
  fs.writeFileSync("dist/index.html", html);
40
40
 
41
41
  const ctx = await context(buildOptions(config, true));
@@ -68,7 +68,6 @@ export class HelpModal extends HTMLElement {
68
68
  <h4>Software &amp; Libraries</h4>
69
69
  <ul>
70
70
  <li>
71
- IDE powered by
72
71
  <a target="_blank" href="https://gitlab.com/trailstash/ultra"
73
72
  >@trailstash/ultra</a
74
73
  > <code>${version}</code>
@@ -91,6 +91,7 @@ export class UltraIDE extends HTMLElement {
91
91
  help;
92
92
 
93
93
  static MAP_INIT_SETTINGS = [
94
+ "loadSettingsFromQueryParams",
94
95
  "options",
95
96
  "controls",
96
97
  "mapStyle",
@@ -137,7 +138,11 @@ export class UltraIDE extends HTMLElement {
137
138
  // Get initial query and center&zoom
138
139
  this.query = getQueryFromQueryParams() || queryFromStorage() || this.query;
139
140
  this.autoRun = getAutoRunFromQueryParams();
140
- this.settings = { persistState: true, ...this.settings };
141
+ this.settings = {
142
+ persistState: true,
143
+ ...this.settings,
144
+ loadSettingsFromQueryParams: false,
145
+ };
141
146
 
142
147
  shadow.appendChild(
143
148
  h(
@@ -37,7 +37,7 @@ export class UltraMap extends HTMLElement {
37
37
  #autoProvider;
38
38
 
39
39
  static defaults = {
40
- loadSettingsFromQueryParams: false,
40
+ loadSettingsFromQueryParams: true,
41
41
  type: "auto",
42
42
  query: "",
43
43
  server: null,
package/mkdocs.yml CHANGED
@@ -1,9 +1,9 @@
1
- site_name: Overpass Ultra
2
- site_url: https://overpass-ultra.us/docs/
3
- repo_url: https://gitlab.com/trailstash/overpass-ultra/
1
+ site_name: Ultra
2
+ site_url: https://ultra.trailsta.sh/docs/
3
+ repo_url: https://gitlab.com/trailstash/ultra/
4
4
  copyright: '<a href="https://creativecommons.org/publicdomain/zero/1.0/deed.en">CC0 1.0 Universal</a>'
5
5
  edit_uri: ''
6
- site_dir: static/docs
6
+ site_dir: dist/docs
7
7
  theme:
8
8
  name: material
9
9
  custom_dir: docs/overrides
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.1.0-beta2",
6
+ "version": "3.1.0-beta4",
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": {
@@ -40,8 +40,6 @@
40
40
  "devDependencies": {
41
41
  "@types/node": "^22.6.1",
42
42
  "@unvt/sprite-one": "^0.1.1",
43
- "esbuild": "^0.24.0",
44
- "esbuild-plugin-copy": "^2.1.1",
45
43
  "prettier": "^3.3.3",
46
44
  "puppeteer": "^23.4.0",
47
45
  "svg2png": "^4.1.1",
@@ -64,7 +62,9 @@
64
62
  "normalize.css": "^8.0.1",
65
63
  "osmtogeojson": "^3.0.0-beta.5",
66
64
  "pmtiles": "^3.2.0",
67
- "yaml": "^2.5.1"
65
+ "yaml": "^2.5.1",
66
+ "esbuild": "^0.24.0",
67
+ "esbuild-plugin-copy": "^2.1.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@maplibre/maplibre-gl-style-spec": "20.x"
package/docs/index.md DELETED
@@ -1,53 +0,0 @@
1
- # Introduction
2
-
3
- <img alt="powered by Overpass API" style="float: right" src="https://wiki.openstreetmap.org/w/images/b/b3/Powered_by_Overpass_API.png">
4
-
5
- [Ultra](https://overpass-ultra.us) is a web-application made to simplify making maps with [MapLibre GL
6
- JS](https://maplibre.org) and [OpenStreetMap](https://openstreetmap.org) data.
7
-
8
- The customization of the map complies with an [extended](https://overpass-ultra.us/docs/style#ultra-maplibre-styles) version
9
- of the the [MapLibre Style Spec](https://maplibre.org/maplibre-style-spec/).
10
-
11
- ## Documentation
12
-
13
- The documentation for Ultra is available at <a target="_blank" href="https://overpass-ultra.us/docs/">overpass-ultra.us/docs</a>
14
-
15
- ## Overpass Queries
16
-
17
- Overpass API allows to query for OSM data by your own search criteria. For this purpose, it has a
18
- specifically crafted query language: [Overpass
19
- QL](https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL)
20
-
21
- In addition to regular Overpass API queries one can use `{{bbox}}` to specify the bounding box
22
- coordinates of the current map view.
23
-
24
- ## Configuration
25
-
26
- Various aspects of Ultra, such as styling and the Overpass API server to use, can be
27
- configured via [YAML front-matter](https://overpass-ultra.us/docs/yaml).
28
-
29
- ## Styling
30
-
31
- Ultra supports styling using the [MapLibre Style
32
- Specification](https://maplibre.org/maplibre-style-spec/).
33
-
34
- See the [Styling](https://overpass-ultra.us/docs/style) section for more information.
35
-
36
- ## About
37
-
38
- Ultra is built by Daniel Schep.
39
-
40
- You can contact me on [Mastodon](https://mapstodon.space/@trailstash).
41
-
42
- ## Feedback, Bug Reports, Feature Requests
43
-
44
- While Ultra has been in development for a while, it should still be considered
45
- experimental.
46
-
47
- If you would like to report a bug or provide other feedback, please do so in the project's
48
- [Issue Tracker](https://gitlab.com/trailstash/overpass-ultra/-/issues).
49
-
50
- ## Source Code</h4>
51
-
52
- The [source code](https://gitlab.com/trailstash/overpass-ultra) of this application is released under the
53
- [MIT license](https://gitlab.com/trailstash/overpass-ultra/-/blob/master/LICENSE).