@trailstash/ultra 3.3.0 → 3.3.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.
|
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/ultra-ide.js
CHANGED
|
@@ -121,7 +121,7 @@ export class UltraIDE extends HTMLElement {
|
|
|
121
121
|
shadow.appendChild(
|
|
122
122
|
h(
|
|
123
123
|
"nav-bar",
|
|
124
|
-
{ title: this.title, icon: this.icon },
|
|
124
|
+
{ title: this.settings.title, icon: this.settings.icon },
|
|
125
125
|
h("fs-button", { slot: "fs-button" }),
|
|
126
126
|
h(
|
|
127
127
|
"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