@trailstash/ultra 3.4.2 → 3.4.3

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/cli/build.js CHANGED
@@ -63,7 +63,7 @@ export default class Build extends Command {
63
63
  config: Flags.string({
64
64
  char: "c",
65
65
  description: "configuration to use",
66
- default: path.join(process.cwd(), "/config.js"),
66
+ default: path.join(process.cwd(), "/config.mjs"),
67
67
  }),
68
68
  };
69
69
  static args = {
@@ -82,9 +82,9 @@ export default class Build extends Command {
82
82
 
83
83
  if (!fs.existsSync(config)) {
84
84
  console.error(
85
- `"${config}" not found, using ${path.join(ultraRoot, "config.js")}`,
85
+ `"${config}" not found, using ${path.join(ultraRoot, "config.mjs")}`,
86
86
  );
87
- config = path.join(ultraRoot, "config.js");
87
+ config = path.join(ultraRoot, "config.mjs");
88
88
  }
89
89
 
90
90
  if (query) {
package/cli/serve.js CHANGED
@@ -43,9 +43,9 @@ export default class Serve extends Command {
43
43
 
44
44
  if (!fs.existsSync(config)) {
45
45
  console.error(
46
- `"${config}" not found, using ${path.join(ultraRoot, "config.js")}`,
46
+ `"${config}" not found, using ${path.join(ultraRoot, "config.mjs")}`,
47
47
  );
48
- config = path.join(ultraRoot, "config.js");
48
+ config = path.join(ultraRoot, "config.mjs");
49
49
  }
50
50
 
51
51
  if (query) {
@@ -32,18 +32,6 @@ Full documentation for Ultra is available at ${window.location.origin}/docs
32
32
  Various aspects of Ultra, such as styling, can be
33
33
  configured via [YAML front-matter](/docs/yaml).
34
34
 
35
- ## Query Bounds
36
-
37
- The following shortcuts are available to parameterize your queries:
38
-
39
- | shortcut | description |
40
- | -------- | ----------- |
41
- | \`{{bbox}}\` | The map's bounds in the format expected by [https://overpass-api.de](Overpass) |
42
- | \`{{south}}\` | The Southern Latitude of the map's bounds |
43
- | \`{{north}}\` | The Northern Latitude of the map's bounds |
44
- | \`{{east}}\` | The Eastern Longitude of the map's bounds |
45
- | \`{{west}}\` | The Western Longitude of the map's bounds |
46
-
47
35
  ## Styling
48
36
 
49
37
  Ultra supports styling using an extended version of the the
@@ -51,6 +39,15 @@ Ultra supports styling using an extended version of the the
51
39
 
52
40
  See the [Styling](/docs/style) section for more information.
53
41
 
42
+ ## Overpass Queries
43
+
44
+ The Overpass API allows you to query for OSM data by your own search criteria. For this purpose, it
45
+ has a specifically crafted query language: [Overpass
46
+ QL](https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL)
47
+
48
+ In addition to regular Overpass API queries one can use \`{{bbox}}\` to specify the bounding box
49
+ coordinates of the current map view.
50
+
54
51
  ## About
55
52
 
56
53
  Ultra is built by Daniel Schep.
@@ -96,7 +93,7 @@ export class HelpModal extends HTMLElement {
96
93
  let stylesHTML = "";
97
94
  if (this.styles.length > 0) {
98
95
  stylesHTML = `<div><h4>Style & Tile Providers</h4><ul>`;
99
- const styles = new Set(this.styles.map(style => style[2]));
96
+ const styles = new Set(this.styles.map((style) => style[2]));
100
97
  for (const style of styles) {
101
98
  stylesHTML += `<li>${style}</li>`;
102
99
  }
@@ -120,7 +117,7 @@ export class HelpModal extends HTMLElement {
120
117
  <li>
121
118
  Map powered by
122
119
  <a target="_blank" href="https://github.com/maplibre/maplibre-gl-js/"
123
- >MapLibre GL JS</a
120
+ >maplibre-gl</a
124
121
  > <code>${maplibreVersion}</code>
125
122
  </li>
126
123
  <li>
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.4.2",
6
+ "version": "3.4.3",
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": {
File without changes