@trailstash/ultra 3.0.1 → 3.1.0-beta2

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.
Binary file
package/cli/build.js CHANGED
@@ -3,15 +3,26 @@ import path from "path";
3
3
  import process from "process";
4
4
  import { build } from "esbuild";
5
5
  import { Command, Flags } from "@oclif/core";
6
+ import { copy } from "esbuild-plugin-copy";
7
+ import { Liquid } from "liquidjs";
8
+
9
+ const engine = new Liquid();
10
+ export const getHTMLContext = async (configFile) => {
11
+ const config = await import(configFile);
12
+ const {
13
+ settings: { title, description, url, mastodon },
14
+ } = config.modes[config.defaultMode];
15
+ return { title, description, url, mastodon };
16
+ };
6
17
 
7
18
  export const ultraRoot = path.dirname(
8
19
  path.dirname(new URL(import.meta.url).pathname),
9
20
  );
10
- export const buildOptions = (config) => ({
21
+ export const buildOptions = (config, watch = false) => ({
11
22
  entryPoints: [path.join(ultraRoot, "index.js")],
12
23
  bundle: true,
13
24
  format: "esm",
14
- outdir: path.join(ultraRoot, "static/dist"),
25
+ outdir: "dist",
15
26
  loader: {
16
27
  ".md": "text",
17
28
  ".css": "text",
@@ -22,6 +33,15 @@ export const buildOptions = (config) => ({
22
33
  alias: {
23
34
  "ultra-config": config,
24
35
  },
36
+ plugins: [
37
+ copy({
38
+ assets: {
39
+ from: [path.join(ultraRoot, "static/*")],
40
+ to: [path.join(process.cwd(), "./dist")],
41
+ },
42
+ watch,
43
+ }),
44
+ ],
25
45
  });
26
46
 
27
47
  export default class Build extends Command {
@@ -29,7 +49,7 @@ export default class Build extends Command {
29
49
  config: Flags.string({
30
50
  char: "c",
31
51
  description: "configuration to use",
32
- default: path.join(ultraRoot, "configs/overpass-ultra.js"),
52
+ default: path.join(process.cwd(), "/config.js"),
33
53
  }),
34
54
  };
35
55
 
@@ -40,14 +60,13 @@ export default class Build extends Command {
40
60
  flags: { config },
41
61
  } = await this.parse(Build);
42
62
 
43
- await build(buildOptions(config));
63
+ const html = engine.parseAndRenderSync(
64
+ fs.readFileSync(path.join(ultraRoot, "index.html")),
65
+ await getHTMLContext(config),
66
+ );
67
+ fs.mkdirSync("dist", { recursive: true});
68
+ fs.writeFileSync("dist/index.html", html);
44
69
 
45
- if (ultraRoot !== process.cwd()) {
46
- fs.cpSync(
47
- path.join(ultraRoot, "static"),
48
- path.join(process.cwd(), "static"),
49
- { recursive: true },
50
- );
51
- }
70
+ await build(buildOptions(config));
52
71
  }
53
72
  }
package/cli/serve.js CHANGED
@@ -1,7 +1,11 @@
1
+ import fs from "fs";
1
2
  import path from "path";
2
3
  import { context } from "esbuild";
3
4
  import { Command, Flags } from "@oclif/core";
4
- import Build, { buildOptions, ultraRoot } from "./build.js";
5
+ import Build, { buildOptions, getHTMLContext, ultraRoot } from "./build.js";
6
+ import { Liquid } from "liquidjs";
7
+
8
+ const engine = new Liquid();
5
9
 
6
10
  export default class Serve extends Command {
7
11
  static flags = {
@@ -27,8 +31,15 @@ export default class Serve extends Command {
27
31
  flags: { config, host, port },
28
32
  } = await this.parse(Serve);
29
33
 
30
- const ctx = await context(buildOptions(config));
34
+ const html = engine.parseAndRenderSync(
35
+ fs.readFileSync(path.join(ultraRoot, "index.html")),
36
+ await getHTMLContext(config),
37
+ );
38
+ fs.mkdirSync("dist", { recursive: true});
39
+ fs.writeFileSync("dist/index.html", html);
40
+
41
+ const ctx = await context(buildOptions(config, true));
31
42
  console.log(`Starting dev server on http://${host}:${port}`);
32
- await ctx.serve({ host, port, servedir: path.join(ultraRoot, "static") });
43
+ await ctx.serve({ host, port, servedir: "dist" });
33
44
  }
34
45
  }
@@ -3,6 +3,7 @@ import { h, t } from "../lib/dom.js";
3
3
  import { style as buttonCSS } from "./button.js";
4
4
  import { normalizeCSS } from "../lib/normalize.js";
5
5
  import { toQueryParams } from "../lib/queryParams.js";
6
+ import { version } from "../package.json";
6
7
  import { version as maplibreVersion } from "maplibre-gl/package.json";
7
8
  import { version as osmtogeojsonVersion } from "osmtogeojson/package.json";
8
9
  import readme from "../README.md";
@@ -66,6 +67,12 @@ export class HelpModal extends HTMLElement {
66
67
  </ul>
67
68
  <h4>Software &amp; Libraries</h4>
68
69
  <ul>
70
+ <li>
71
+ IDE powered by
72
+ <a target="_blank" href="https://gitlab.com/trailstash/ultra"
73
+ >@trailstash/ultra</a
74
+ > <code>${version}</code>
75
+ </li>
69
76
  <li>
70
77
  Map powered by
71
78
  <a target="_blank" href="https://maplibre.org/projects/maplibre-gl-js/"
Binary file
@@ -1,4 +1,4 @@
1
- Here are some more resources on Overpass Ultra:
1
+ Here are some more resources on Ultra:
2
2
 
3
3
  ## OSM Wiki
4
4
 
package/docs/index.md CHANGED
@@ -2,17 +2,15 @@
2
2
 
3
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
4
 
5
- [Overpass 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, powered by the
7
- [Overpass API](https://overpass-api.de/) and
8
- [`osmtogeojson`](https://github.com/tyrasd/osmtogeojson)
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.
9
7
 
10
8
  The customization of the map complies with an [extended](https://overpass-ultra.us/docs/style#ultra-maplibre-styles) version
11
9
  of the the [MapLibre Style Spec](https://maplibre.org/maplibre-style-spec/).
12
10
 
13
11
  ## Documentation
14
12
 
15
- The documentation for Overpass Ultra is available at <a target="_blank" href="https://overpass-ultra.us/docs/">overpass-ultra.us/docs</a>
13
+ The documentation for Ultra is available at <a target="_blank" href="https://overpass-ultra.us/docs/">overpass-ultra.us/docs</a>
16
14
 
17
15
  ## Overpass Queries
18
16
 
@@ -25,25 +23,25 @@ coordinates of the current map view.
25
23
 
26
24
  ## Configuration
27
25
 
28
- Various aspects of Overpass Ultra, such as styling and the Overpass API server to use, can be
26
+ Various aspects of Ultra, such as styling and the Overpass API server to use, can be
29
27
  configured via [YAML front-matter](https://overpass-ultra.us/docs/yaml).
30
28
 
31
29
  ## Styling
32
30
 
33
- Overpass Ultra supports styling using the [MapLibre Style
31
+ Ultra supports styling using the [MapLibre Style
34
32
  Specification](https://maplibre.org/maplibre-style-spec/).
35
33
 
36
34
  See the [Styling](https://overpass-ultra.us/docs/style) section for more information.
37
35
 
38
36
  ## About
39
37
 
40
- Overpass Ultra is built by Daniel Schep.
38
+ Ultra is built by Daniel Schep.
41
39
 
42
40
  You can contact me on [Mastodon](https://mapstodon.space/@trailstash).
43
41
 
44
42
  ## Feedback, Bug Reports, Feature Requests
45
43
 
46
- While Overpass Ultra has been in development for a while, it should still be considered
44
+ While Ultra has been in development for a while, it should still be considered
47
45
  experimental.
48
46
 
49
47
  If you would like to report a bug or provide other feedback, please do so in the project's
package/docs/style.md CHANGED
@@ -18,11 +18,11 @@ The value of the style: key can contain:
18
18
 
19
19
  ## Ultra MapLibre styles
20
20
 
21
- In order to simplify the use of MapLibre styles, Overpass Ultra implements a number of features.
21
+ In order to simplify the use of MapLibre styles, Ultra implements a number of features.
22
22
 
23
23
  ### Query result styling
24
24
 
25
- In order to allow for easy styling of the query results, Overpass Ultra allows you to specify a
25
+ In order to allow for easy styling of the query results, Ultra allows you to specify a
26
26
  style with only the layer for your query results.
27
27
 
28
28
  For example, to render query results with a purple MapLibre
@@ -66,7 +66,7 @@ source containting the query results.
66
66
  ### Automatic `paint` and `layer` keys
67
67
  In order to reduce the mental overhead of remember what keys are
68
68
  [`paint`](https://maplibre.org/maplibre-style-spec/layers/#paint) options and which are
69
- [`layout`](https://maplibre.org/maplibre-style-spec/layers/#layout) options, Overpass Ultra will
69
+ [`layout`](https://maplibre.org/maplibre-style-spec/layers/#layout) options, Ultra will
70
70
  automatically move them from the layer object into the appropriate options object.
71
71
 
72
72
  For example, the above purple circle layer can be implemented as:
@@ -89,13 +89,13 @@ In order to place your layers below existing style layers, you can use the `befo
89
89
  ## PNG sprites via HTTPS
90
90
  In order to facilitate adding icons to the map that don't exist in the basemap's
91
91
  [sprites](),
92
- if `icon-image` is set to an HTTPS URL to a PNG image, Overpass Ultra will automatically download
92
+ if `icon-image` is set to an HTTPS URL to a PNG image, Ultra will automatically download
93
93
  it and add it to the Map's images.
94
94
 
95
95
  [Example](./MapLibre-Examples/add-image.md)
96
96
 
97
97
  ## Bundled Sprites
98
- In order to simplify the creation of POI maps, Overpass Ultra bundles the
98
+ In order to simplify the creation of POI maps, Ultra bundles the
99
99
  [Maki](https://github.com/mapbox/maki) and [Temaki](https://github.com/rapideditor/temaki) sprites
100
100
  and adds them to your style as [SDFs](https://docs.mapbox.com/help/troubleshooting/using-recolorable-images-in-mapbox-maps/)
101
101
  allowing for easy styling of icons.
@@ -116,5 +116,5 @@ style:
116
116
 
117
117
  ## Fallback fontstack
118
118
  Since not all MapLibre styles have the same
119
- [glyphs](https://maplibre.org/maplibre-style-spec/glyphs/), Overpass Ultra will default to using
119
+ [glyphs](https://maplibre.org/maplibre-style-spec/glyphs/), Ultra will default to using
120
120
  Noto Sans Regular if the speficied(or default) fontstack is not available.
@@ -1,6 +1,6 @@
1
1
  # URL Hash Parameters
2
2
 
3
- You use the following query string parameters as a hash to instruct Overpass Ultra to set certain properties on startup (such as the query or the map location).
3
+ You use the following query string parameters as a hash to instruct Ultra to set certain properties on startup (such as the query or the map location).
4
4
 
5
5
  ## `query` <small>(URL-encoded string)</small>
6
6
 
package/docs/yaml.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # YAML front-matter config
2
2
 
3
- The real power of Overpass Ultra lies in it's easy configuration of MapLibre with the a query's
3
+ The real power of Ultra lies in it's easy configuration of MapLibre with the a query's
4
4
  [YAML front-matter](https://jekyllrb.com/docs/front-matter/).
5
5
 
6
6
  ## `style`
7
7
 
8
- Customize the MapLibre style. See [Styling](./Style.md) for more information.
8
+ Customize the MapLibre style. See [Styling](./style.md) for more information.
9
9
 
10
10
  Example:
11
11
  ```
@@ -74,7 +74,7 @@ url](https://maplibre.org/maplibre-style-spec/sources/#url_2)
74
74
 
75
75
  ## `options`
76
76
 
77
- When an Overpass Ultra query is run in "interactive map" mode, you can specify the
77
+ When an Ultra query is run in "interactive map" mode, you can specify the
78
78
  [`MapOptions`](https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/MapOptions/)
79
79
  that are passed to the MapLibre constructor.
80
80
 
@@ -89,7 +89,7 @@ options:
89
89
  ```
90
90
 
91
91
  ## `controls`
92
- When an Overpass Ultra query is run in "interactive map" mode, you can specify controls to be added to the map with the `controls` key
92
+ When an Ultra query is run in "interactive map" mode, you can specify controls to be added to the map with the `controls` key
93
93
  in the YAML-front matter. The key should contain a list of objects. Each object must specify a `type` key containing the
94
94
  name of a control present in MapLibre. It can optionally contain an `options` key who's contents are passed to the
95
95
  control's constructor and a `position` key that is passed to
@@ -4,15 +4,19 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <link rel="icon" href="./logo.png" />
7
- <link rel="me" href="https://mapstodon.space/@trailstash" />
7
+ {% if mastodon %}
8
+ <link rel="me" href="{{ mastodon }}" />
9
+ {% endif %}
8
10
 
9
- <title>Ultra</title>
11
+ <title>{{ title | default: "Ultra"}}</title>
10
12
 
11
13
  <!-- Meta tags for SEO and social sharing -->
12
- <link rel="canonical" href="https://overpass-ultra.us/" />
14
+ {% if url %}
15
+ <link rel="canonical" href="{{ url }}" />
16
+ {% endif %}
13
17
  <meta
14
18
  name="description"
15
- content="A web based data visualization tool for OpenStreetMap which runs spatial OverpassQL queries and shows the results on an interactive map"
19
+ content="{{ description | default: "A web based tool for making MapLibre GL maps with data from sources such as Overpass, GeoJSON, GPX, KML, TCX, etc" }}"
16
20
  />
17
21
  <meta name="robots" content="index,follow" />
18
22
 
@@ -28,7 +32,7 @@
28
32
  : (window.sa_event.q = [a]);
29
33
  };
30
34
  </script>
31
- <script src="./dist/index.js" type="module"></script>
35
+ <script src="./index.js" type="module"></script>
32
36
  </head>
33
37
  <body>
34
38
  <ultra-loader></ultra-loader>
package/package.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.0.1",
7
- "description": "A web based tool for making MapLibre GL maps with data from souces such as Overpass, GeoJSON, GPX, KML, TCX, etc",
6
+ "version": "3.1.0-beta2",
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": {
10
10
  "build": "node ./bin/run.js build",
@@ -14,9 +14,9 @@
14
14
  "build:maplibre-examples-docs": "node ./build-examples-docs.js MapLibre-Examples",
15
15
  "build:docs": "mkdocs build",
16
16
  "start:docs": "mkdocs serve",
17
- "build:pages": "mkdir -p public && cp -Lr static/* public/.",
17
+ "build:pages": "mkdir -p public && cp -Lr dist/* public/.",
18
18
  "start": "node ./bin/run.js serve",
19
- "format": "prettier --print-width=80 --write '**/*.js' '**/*.json' README.md static/index.html '**/*.css'",
19
+ "format": "prettier --print-width=80 --write '**/*.js' '**/*.json' README.md '**/*.css'",
20
20
  "test": "echo \"Error: no test specified\" && exit 1"
21
21
  },
22
22
  "type": "module",
@@ -38,11 +38,12 @@
38
38
  },
39
39
  "homepage": "https://overpass-ultra.us/",
40
40
  "devDependencies": {
41
- "@types/node": "^22.5.4",
41
+ "@types/node": "^22.6.1",
42
42
  "@unvt/sprite-one": "^0.1.1",
43
- "esbuild": "^0.23.1",
43
+ "esbuild": "^0.24.0",
44
+ "esbuild-plugin-copy": "^2.1.1",
44
45
  "prettier": "^3.3.3",
45
- "puppeteer": "^23.3.0",
46
+ "puppeteer": "^23.4.0",
46
47
  "svg2png": "^4.1.1",
47
48
  "ts-node": "^10.9.2"
48
49
  },
@@ -50,19 +51,19 @@
50
51
  "dependencies": {
51
52
  "@fortawesome/fontawesome-svg-core": "^6.6.0",
52
53
  "@fortawesome/free-solid-svg-icons": "^6.6.0",
53
- "@oclif/core": "^4.0.20",
54
+ "@oclif/core": "^4.0.23",
54
55
  "@tmcw/togeojson": "^5.8.1",
55
56
  "@trailstash/maplibre-component": "^1.0.1",
56
57
  "@turf/bbox": "^7.1.0",
57
58
  "deep-equal": "^2.2.3",
58
- "liquidjs": "^10.16.7",
59
+ "liquidjs": "^10.17.0",
59
60
  "lodash.pick": "^4.4.0",
60
61
  "lz-string": "^1.5.0",
61
- "maplibre-gl": "^4.7.0",
62
- "marked": "^14.1.1",
62
+ "maplibre-gl": "^4.7.1",
63
+ "marked": "^14.1.2",
63
64
  "normalize.css": "^8.0.1",
64
65
  "osmtogeojson": "^3.0.0-beta.5",
65
- "pmtiles": "^3.0.7",
66
+ "pmtiles": "^3.2.0",
66
67
  "yaml": "^2.5.1"
67
68
  },
68
69
  "peerDependencies": {
@@ -1,181 +0,0 @@
1
- import help from "../docs/index.md";
2
-
3
- const queryUrl = () => {
4
- const params = new URLSearchParams(window.location.hash.slice(1));
5
- params.delete("map");
6
- return new URL("#" + params.toString(), window.location).toString();
7
- };
8
-
9
- let mapStyle = "https://styles.trailsta.sh/openmaptiles-osm.json";
10
- let server = "https://overpass-api.de/api";
11
- let query = `/*
12
- This is an example Overpass query.
13
- Try it out by pressing the Run button above!
14
- */
15
- [bbox:{{bbox}}];
16
- (
17
- way[highway=path];
18
- way[highway=footway];
19
- way[highway=cycleway];
20
- way[highway=steps];
21
- );
22
- out geom;`;
23
- let popupTemplate;
24
-
25
- let styles = [
26
- [
27
- "OSM OpenMapTiles",
28
- "https://styles.trailsta.sh/openmaptiles-osm.json",
29
- "OpenMapTiles",
30
- ],
31
- [
32
- "OSM Liberty",
33
- "https://styles.trailsta.sh/osm-liberty.json",
34
- "OpenMapTiles",
35
- ],
36
- ["OSM Bright", "https://styles.trailsta.sh/osm-bright.json", "OpenMapTiles"],
37
- ["Positron", "https://styles.trailsta.sh/positron.json", "OpenMapTiles"],
38
- [
39
- "Dark Matter",
40
- "https://styles.trailsta.sh/dark-matter.json",
41
- "OpenMapTiles",
42
- ],
43
- [
44
- "MapTiler Basic",
45
- "https://styles.trailsta.sh/maptiler-basic.json",
46
- "OpenMapTiles",
47
- ],
48
- [
49
- "Fiord Color",
50
- "https://styles.trailsta.sh/fiord-color.json",
51
- "OpenMapTiles",
52
- ],
53
- [
54
- "Protomaps Light",
55
- "https://styles.trailsta.sh/protomaps-light.json",
56
- "Protomaps",
57
- ],
58
- [
59
- "Protomaps Dark",
60
- "https://styles.trailsta.sh/protomaps-dark.json",
61
- "Protomaps",
62
- ],
63
- [
64
- "Protomaps Data Viz (white)",
65
- "https://styles.trailsta.sh/protomaps-white.json",
66
- "Protomaps",
67
- ],
68
- [
69
- "Protomaps Data Viz (grayscale)",
70
- "https://styles.trailsta.sh/protomaps-grayscale.json",
71
- "Protomaps",
72
- ],
73
- [
74
- "Protomaps Data Viz (black)",
75
- "https://styles.trailsta.sh/protomaps-black.json",
76
- "Protomaps",
77
- ],
78
- ["Basic", "https://styles.trailsta.sh/protomaps-contrast.json", "Protomaps"],
79
- ["OpenTrailStash", "https://open.trailsta.sh/style.json", "OpenTrailStash"],
80
- ];
81
-
82
- if (window.location.host === "ohm.overpass-ultra.us") {
83
- // TODO: customize help
84
- styles = [];
85
- query = `/*
86
- This is an example Overpass query.
87
- Try it out by pressing the Run button above!
88
- */
89
- nwr["amenity"="theatre"]["start_date"](if:
90
- t["start_date"] < "1976" &&
91
- (!is_tag("end_date") || t["end_date"] >= "1975"));
92
-
93
- out geom;`;
94
- server = "https://overpass-api.openhistoricalmap.org/api/";
95
- mapStyle = "https://www.openhistoricalmap.org/map-styles/main/main.json";
96
- popupTemplate = `
97
- <h2>
98
- {{ type }}
99
- <a href="https://openhistoricalmap.org/{{ type }}/{{ id }}" target="_blank">{{ id }}</a>
100
- <a href="https://openhistoricalmap.org/edit?{{ type }}={{ id }}" target="_blank">✏️</a>
101
- </h2>
102
- <h3>Tags</h3>
103
- {%- for tag in tags %}
104
- {%- if tag[0] contains "website" %}
105
- <code>{{ tag[0] }} = <a href="{{ tag[1] }}" target="_blank">{{ tag[1] }}</a></code>
106
- {%- elsif tag[0] contains "wikidata" %}
107
- <code>{{ tag[0] }} = <a href="https://wikidata.org/wiki/{{ tag[1] }}" target="_blank">{{ tag[1] }}</a></code>
108
- {%- elsif tag[0] contains "wikipedia" %}
109
- {% assign lang = tag[1] | split: ":" | first %}
110
- <code>{{ tag[0] }} = <a href="https://{{ lang }}.wikipedia.org/wiki/{{ tag[1] | replace_first: lang, "" | replace_first: ":", "" }}" target="_blank">{{ tag[1] }}</a></code>
111
- {%- else %}
112
- <code>{{ tag[0] }} = {{ tag[1] }}</code>
113
- {%- endif %}
114
- <br>
115
- {%- endfor %}
116
- {%- if meta %}
117
- <h3>Meta</h3>
118
- {%- for tag in meta %}
119
- {%- if tag[0] == "changeset" %}
120
- <code>{{ tag[0] }} = <a href="https://openhistoricalmap.org/changeset/{{ tag[1] }}" target="_blank">{{ tag[1] }}</a></code>
121
- {%- elsif tag[0] == "user" %}
122
- <code>{{ tag[0] }} = <a href="https://openhistoricalmap.org/user/{{ tag[1] }}" target="_blank">{{ tag[1] }}</a></code>
123
- {%- else %}
124
- <code>{{ tag[0] }} = {{ tag[1] }}</code>
125
- {%- endif %}
126
- <br>
127
- {%- endfor %}
128
- {%- endif %}
129
- {%- if coordinates %}
130
- <h3>Coordinates</h3>
131
- <a href="geo://{{coordinates[1]}},{{coordinates[0]}}">{{coordinates[1] | round: 6 }} / {{coordinates[0] | round: 6 }}</a> <small>(lat/lon)</small>
132
- {%- endif %}
133
- `;
134
- }
135
-
136
- const settings = {
137
- type: "overpass",
138
- server,
139
- mapStyle,
140
- popupTemplate,
141
- options: {},
142
- controls: [],
143
- };
144
-
145
- export const defaultMode = "ide";
146
- export const modes = {
147
- ide: {
148
- query,
149
- styles,
150
- help,
151
- title: "Overpass Ultra",
152
- icon: "/logo.png",
153
- settings: {
154
- ...settings,
155
- zoom: 16,
156
- center: [-77.4515, 37.5287],
157
- options: {
158
- attributionControl: {
159
- customAttribution: "",
160
- },
161
- maxBounds: [
162
- [-179.999999999, -85.051129],
163
- [179.999999999, 85.051129],
164
- ],
165
- },
166
- },
167
- },
168
- map: {
169
- settings: {
170
- ...settings,
171
- loadSettingsFromQueryParams: true,
172
- options: {
173
- attributionControl: {
174
- compact: true,
175
- customAttribution: `<a href=".">Overpass Ultra</a>
176
- (<a href="${queryUrl()}">View Query</a>)`,
177
- },
178
- },
179
- },
180
- },
181
- };
package/static/minimal.js DELETED
@@ -1,9 +0,0 @@
1
- export const defaultMode = "ide";
2
- export const modes = {
3
- ide: {
4
- settings: {},
5
- },
6
- map: {
7
- settings: {},
8
- },
9
- };
@@ -1,7 +0,0 @@
1
- {
2
- "defaultMode": "ide",
3
- "modes": {
4
- "ide": { "settings": {} },
5
- "map": { "settings": {} }
6
- }
7
- }
File without changes