@trailstash/ultra 3.3.0 → 3.3.2
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/components/help-modal.js
CHANGED
|
@@ -32,39 +32,6 @@ export class HelpModal extends HTMLElement {
|
|
|
32
32
|
`
|
|
33
33
|
${readmeHTML}
|
|
34
34
|
<div>
|
|
35
|
-
<h4>Data Sources</h4>
|
|
36
|
-
<ul>
|
|
37
|
-
<li>
|
|
38
|
-
Data ©
|
|
39
|
-
<a target="_blank" href="http://openstreetmap.org/">OpenStreetMap</a>
|
|
40
|
-
contributors,
|
|
41
|
-
<span style="font-size: smaller">
|
|
42
|
-
<a target="_blank" href="http://opendatacommons.org/licenses/odbl/1-0/"
|
|
43
|
-
>ODbL</a
|
|
44
|
-
>
|
|
45
|
-
(<a target="_blank" href="http://www.openstreetmap.org/copyright">Terms</a>)
|
|
46
|
-
</span>
|
|
47
|
-
</li>
|
|
48
|
-
<li>
|
|
49
|
-
Data mining by
|
|
50
|
-
<a target="_blank" href="http://overpass-api.de/">Overpass API</a>
|
|
51
|
-
</li>
|
|
52
|
-
<li>
|
|
53
|
-
<a target="_blank" href="https://www.openmaptiles.org/"
|
|
54
|
-
>OpenMapTiles
|
|
55
|
-
</a>
|
|
56
|
-
hosted by the
|
|
57
|
-
<a target="_blank" href="http://tile.ourmap.us/">
|
|
58
|
-
OSM Americana Community Vector Tile Server</a
|
|
59
|
-
>
|
|
60
|
-
</li>
|
|
61
|
-
<li>
|
|
62
|
-
<a target="_blank" href="https://www.protomaps.com/"
|
|
63
|
-
>Protomaps
|
|
64
|
-
</a>
|
|
65
|
-
hosted by the Protomaps API
|
|
66
|
-
</li>
|
|
67
|
-
</ul>
|
|
68
35
|
<h4>Software & Libraries</h4>
|
|
69
36
|
<ul>
|
|
70
37
|
<li>
|
package/components/nav-bar.js
CHANGED
|
@@ -67,8 +67,8 @@ export class NavBar extends HTMLElement {
|
|
|
67
67
|
h(
|
|
68
68
|
"a",
|
|
69
69
|
{ href: "." },
|
|
70
|
-
h("b", {}, t(this.title)),
|
|
71
|
-
h("img", { src: this.icon }),
|
|
70
|
+
h("b", {}, t(this.title || "Ultra")),
|
|
71
|
+
h("img", { src: this.icon || "./logo.png" }),
|
|
72
72
|
),
|
|
73
73
|
);
|
|
74
74
|
shadow.appendChild(nav);
|
package/components/ultra-ide.js
CHANGED
|
@@ -86,8 +86,6 @@ export class UltraIDE extends HTMLElement {
|
|
|
86
86
|
query = "";
|
|
87
87
|
settings = {};
|
|
88
88
|
styles = [];
|
|
89
|
-
title = "Ultra";
|
|
90
|
-
icon = "/logo.svg";
|
|
91
89
|
help;
|
|
92
90
|
|
|
93
91
|
static MAP_INIT_SETTINGS = [
|
|
@@ -98,7 +96,7 @@ export class UltraIDE extends HTMLElement {
|
|
|
98
96
|
"queryProviders",
|
|
99
97
|
"persistState",
|
|
100
98
|
];
|
|
101
|
-
static props = ["settings", "query", "styles", "
|
|
99
|
+
static props = ["settings", "query", "styles", "help"];
|
|
102
100
|
|
|
103
101
|
constructor() {
|
|
104
102
|
super();
|
|
@@ -121,7 +119,7 @@ export class UltraIDE extends HTMLElement {
|
|
|
121
119
|
shadow.appendChild(
|
|
122
120
|
h(
|
|
123
121
|
"nav-bar",
|
|
124
|
-
{ title: this.title, icon: this.icon },
|
|
122
|
+
{ title: this.settings.title, icon: this.settings.icon },
|
|
125
123
|
h("fs-button", { slot: "fs-button" }),
|
|
126
124
|
h(
|
|
127
125
|
"span",
|
package/components/ultra-map.js
CHANGED
|
@@ -86,6 +86,9 @@ export class UltraMap extends HTMLElement {
|
|
|
86
86
|
"query",
|
|
87
87
|
"fitBounds",
|
|
88
88
|
"mapStyle",
|
|
89
|
+
"icon",
|
|
90
|
+
"title",
|
|
91
|
+
"description",
|
|
89
92
|
];
|
|
90
93
|
static RUNTIME_SETTINGS = [
|
|
91
94
|
"type",
|
|
@@ -162,6 +165,16 @@ export class UltraMap extends HTMLElement {
|
|
|
162
165
|
#initUnbound(mapStyle) {
|
|
163
166
|
const hadHash = hasHash(this.options.hash);
|
|
164
167
|
|
|
168
|
+
if (this.title) {
|
|
169
|
+
document.title = this.title;
|
|
170
|
+
}
|
|
171
|
+
if (this.icon) {
|
|
172
|
+
document.querySelector('[rel=icon]').href = this.icon;
|
|
173
|
+
}
|
|
174
|
+
if (this.description) {
|
|
175
|
+
// TODO?
|
|
176
|
+
}
|
|
177
|
+
|
|
165
178
|
this.refs = {
|
|
166
179
|
mapLibre: h("map-libre", {
|
|
167
180
|
mapStyle,
|
package/package.json
CHANGED