@stadiamaps/ferrostar-webcomponents 0.33.0 → 0.34.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.
@@ -25,9 +25,18 @@ export declare class FerrostarMap extends LitElement {
25
25
  useVoiceGuidance: boolean;
26
26
  /**
27
27
  * Automatically geolocates the user on map load.
28
+ *
28
29
  * Defaults to true.
30
+ * Has no effect if `addGeolocateControl` is false.
29
31
  */
30
32
  geolocateOnLoad: boolean;
33
+ /**
34
+ * Optionally adds a geolocate control to the map.
35
+ *
36
+ * Defaults to true.
37
+ * Set this to false if you want to disable the geolocation control or bring your own.
38
+ */
39
+ addGeolocateControl: boolean;
31
40
  routeAdapter: RouteAdapter | null;
32
41
  /**
33
42
  * The MapLibre map instance.
@@ -1 +1 @@
1
- {"version":3,"file":"ferrostar-map.d.ts","sourceRoot":"","sources":["../src/ferrostar-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE5D,OAAO,UAAU,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAI9B;;GAEG;AACH,qBACa,YAAa,SAAQ,UAAU;IAE1C,mBAAmB,EAAE,MAAM,CAAM;IAGjC,OAAO,EAAE,MAAM,CAAM;IAGrB,UAAU,CAAC,EAAE,QAAQ,CAAS;IAI9B,gBAAgB,EAAG,GAAG,CAAC;IAIvB,OAAO,EAAE,MAAM,CAAM;IAGrB,SAAS,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAAQ;IAG9C,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAGvC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAA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EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;IAqFjC,cAAc;IAYpB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,iBAAiB;IA+CzB,OAAO,CAAC,QAAQ;IAOhB,MAAM;CA8BP"}
@@ -41,7 +41,7 @@ const X = (a) => new J(typeof a == "string" ? a : a + "", void 0, Z), Q = (a, t)
41
41
  const i = document.createElement("style"), o = w.litNonce;
42
42
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, a.appendChild(i);
43
43
  }
44
- }, W = C ? (a) => a : (a) => a instanceof CSSStyleSheet ? ((t) => {
44
+ }, G = C ? (a) => a : (a) => a instanceof CSSStyleSheet ? ((t) => {
45
45
  let e = "";
46
46
  for (const i of t.cssRules) e += i.cssText;
47
47
  return X(e);
@@ -51,7 +51,7 @@ const X = (a) => new J(typeof a == "string" ? a : a + "", void 0, Z), Q = (a, t)
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: Y, defineProperty: t0, getOwnPropertyDescriptor: e0, getOwnPropertyNames: i0, getOwnPropertySymbols: a0, getPrototypeOf: o0 } = Object, x = globalThis, G = x.trustedTypes, s0 = G ? G.emptyScript : "", l0 = x.reactiveElementPolyfillSupport, m = (a, t) => a, O = { toAttribute(a, t) {
54
+ const { is: Y, defineProperty: t0, getOwnPropertyDescriptor: e0, getOwnPropertyNames: i0, getOwnPropertySymbols: a0, getPrototypeOf: o0 } = Object, x = globalThis, W = x.trustedTypes, s0 = W ? W.emptyScript : "", l0 = x.reactiveElementPolyfillSupport, m = (a, t) => a, O = { toAttribute(a, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
57
  a = a ? s0 : null;
@@ -137,8 +137,8 @@ class u extends HTMLElement {
137
137
  const e = [];
138
138
  if (Array.isArray(t)) {
139
139
  const i = new Set(t.flat(1 / 0).reverse());
140
- for (const o of i) e.unshift(W(o));
141
- } else t !== void 0 && e.push(W(t));
140
+ for (const o of i) e.unshift(G(o));
141
+ } else t !== void 0 && e.push(G(t));
142
142
  return e;
143
143
  }
144
144
  static _$Eu(t, e) {
@@ -306,7 +306,7 @@ const r0 = { attribute: true, type: String, converter: O, reflect: false, hasCha
306
306
  }
307
307
  throw Error("Unsupported decorator location: " + i);
308
308
  };
309
- function g(a) {
309
+ function c(a) {
310
310
  return (t, e) => typeof e == "object" ? n0(a, t, e) : ((i, o, s) => {
311
311
  const l = o.hasOwnProperty(s);
312
312
  return o.constructor.createProperty(s, l ? { ...i, wrapped: true } : i), l ? Object.getOwnPropertyDescriptor(o, s) : void 0;
@@ -318,7 +318,7 @@ function g(a) {
318
318
  * SPDX-License-Identifier: BSD-3-Clause
319
319
  */
320
320
  function c0(a) {
321
- return g({ ...a, state: true, attribute: false });
321
+ return c({ ...a, state: true, attribute: false });
322
322
  }
323
323
  var p = {}, f = {}, P;
324
324
  function g0() {
@@ -338,7 +338,7 @@ function d0() {
338
338
  const i = ["days", "hours", "minutes", "seconds"], o = "short";
339
339
  function s(r) {
340
340
  let d = r;
341
- const n = {
341
+ const g = {
342
342
  days: 0,
343
343
  hours: 0,
344
344
  minutes: 0,
@@ -346,24 +346,24 @@ function d0() {
346
346
  };
347
347
  if (i.find((_) => _ === "days")) {
348
348
  const _ = parseInt((d / 86400).toFixed(0), 10);
349
- d %= 24 * 60 * 60, n.days = _;
349
+ d %= 24 * 60 * 60, g.days = _;
350
350
  }
351
351
  if (i.find((_) => _ === "hours")) {
352
352
  const _ = parseInt((d / 3600).toFixed(0), 10);
353
- d %= 60 * 60, n.hours = _;
353
+ d %= 60 * 60, g.hours = _;
354
354
  }
355
355
  if (i.find((_) => _ === "minutes")) {
356
356
  const _ = parseInt((d / 60).toFixed(0), 10);
357
- d %= 60, n.minutes = _;
357
+ d %= 60, g.minutes = _;
358
358
  }
359
359
  if (i.find((_) => _ === "seconds")) {
360
360
  const _ = parseInt(d.toFixed(0), 10);
361
- n.seconds = _;
361
+ g.seconds = _;
362
362
  }
363
- return n;
363
+ return g;
364
364
  }
365
365
  function l(r, d) {
366
- const n = d != 1 ? "s" : "";
366
+ const g = d != 1 ? "s" : "";
367
367
  switch (o) {
368
368
  case "short":
369
369
  switch (r) {
@@ -380,13 +380,13 @@ function d0() {
380
380
  case "long":
381
381
  switch (r) {
382
382
  case "seconds":
383
- return `${d} ${r}${n}`;
383
+ return `${d} ${r}${g}`;
384
384
  case "minutes":
385
- return `${d} ${r}${n}`;
385
+ return `${d} ${r}${g}`;
386
386
  case "hours":
387
- return `${d} ${r}${n}`;
387
+ return `${d} ${r}${g}`;
388
388
  case "days":
389
- return `${d} ${r}${n}`;
389
+ return `${d} ${r}${g}`;
390
390
  }
391
391
  break;
392
392
  default:
@@ -395,7 +395,7 @@ function d0() {
395
395
  }
396
396
  function v(r) {
397
397
  const d = s(r);
398
- return Object.entries(d).filter((n) => n[1] > 0).flatMap((n) => `${n[1]}${l(n[0], n[1])}`).join(" ");
398
+ return Object.entries(d).filter((g) => g[1] > 0).flatMap((g) => `${g[1]}${l(g[0], g[1])}`).join(" ");
399
399
  }
400
400
  return {
401
401
  format: v
@@ -457,9 +457,9 @@ const _0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%
457
457
  }, Symbol.toStringTag, { value: "Module" })), R0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M14.50342,8.96637L11.55157,7.62262A0.35755,0.35755,0,0,0,11.00916,8v9.49652A0.50346,0.50346,0,0,1,10.50568,18h-0.993a0.50346,0.50346,0,0,1-.50348-0.50348V8a0.35756,0.35756,0,0,0-.54242-0.37738L5.51489,8.96637a0.38659,0.38659,0,0,1-.40942-0.62354L10.00916,2l4.90369,6.34283A0.3866,0.3866,0,0,1,14.50342,8.96637Z'/%3e%3c/svg%3e", j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
458
458
  __proto__: null,
459
459
  default: R0
460
- }, Symbol.toStringTag, { value: "Module" })), W0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M17.00909,8v9.49652A0.50346,0.50346,0,0,1,16.50562,18h-0.993a0.50346,0.50346,0,0,1-.50348-0.50348V8a3.5,3.5,0,1,0-7,0v4H8a0.35757,0.35757,0,0,0,.54242.37738l2.95184-1.34375a0.3866,0.3866,0,0,1,.40942.62354L7,18,2.09625,11.65717a0.3866,0.3866,0,0,1,.40942-0.62354l2.95184,1.34375A0.3576,0.3576,0,0,0,6,12H6.00909V8A5.5,5.5,0,1,1,17.00909,8Z'/%3e%3c/svg%3e", G0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
460
+ }, Symbol.toStringTag, { value: "Module" })), G0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M17.00909,8v9.49652A0.50346,0.50346,0,0,1,16.50562,18h-0.993a0.50346,0.50346,0,0,1-.50348-0.50348V8a3.5,3.5,0,1,0-7,0v4H8a0.35757,0.35757,0,0,0,.54242.37738l2.95184-1.34375a0.3866,0.3866,0,0,1,.40942.62354L7,18,2.09625,11.65717a0.3866,0.3866,0,0,1,.40942-0.62354l2.95184,1.34375A0.3576,0.3576,0,0,0,6,12H6.00909V8A5.5,5.5,0,1,1,17.00909,8Z'/%3e%3c/svg%3e", W0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
461
461
  __proto__: null,
462
- default: W0
462
+ default: G0
463
463
  }, Symbol.toStringTag, { value: "Module" })), K0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M9.98172,19a2,2,0,1,1,2-2A2,2,0,0,1,9.98172,19ZM14.89456,7.34283L9.99087,1,5.08719,7.34283a0.38659,0.38659,0,0,0,.40942.62354L8.44845,6.62262a0.35542,0.35542,0,0,1,.541.36908H8.98172v5.50006a0.49992,0.49992,0,0,0,.49994.49994h1.00012a0.49992,0.49992,0,0,0,.49994-0.49994V7h0.00916a0.35757,0.35757,0,0,1,.54242-0.37738l2.95184,1.34375A0.3866,0.3866,0,0,0,14.89456,7.34283Z'/%3e%3c/svg%3e", P0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
464
464
  __proto__: null,
465
465
  default: K0
@@ -538,9 +538,9 @@ const _0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%
538
538
  }, Symbol.toStringTag, { value: "Module" })), Rt = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M10,5.97986l0.011,0.00183A6.06019,6.06019,0,0,1,16,12.05493V16H15.99689l0.002,1.50317A0.49614,0.49614,0,0,1,15.50269,18H14.49622A0.49622,0.49622,0,0,1,14,17.50378V12.05493a4.05782,4.05782,0,0,0-3.98877-4.07324H8.01245a0.3576,0.3576,0,0,0-.37738.54248L8.97882,11.476a0.38659,0.38659,0,0,1-.62354.40942L2.0083,7l6.347-4.922a0.38659,0.38659,0,0,1,.62354.40942L7.63507,5.43927a0.35757,0.35757,0,0,0,.37738.54242H10'/%3e%3c/svg%3e", jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
539
539
  __proto__: null,
540
540
  default: Rt
541
- }, Symbol.toStringTag, { value: "Module" })), Wt = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M9.98877,7.98169A4.05782,4.05782,0,0,0,6,12.05493v5.44885A0.49622,0.49622,0,0,1,5.50378,18H4.49731a0.49614,0.49614,0,0,1-.49615-0.49683L4.00311,16H4V12.05493A6.06019,6.06019,0,0,1,9.989,5.98169L10,5.97986V5.98169h1.98755a0.35757,0.35757,0,0,0,.37738-0.54242L11.02118,2.48743A0.38659,0.38659,0,0,1,11.64471,2.078L17.9917,7l-6.347,4.88544a0.38659,0.38659,0,0,1-.62354-0.40942l1.34375-2.95184a0.3576,0.3576,0,0,0-.37738-0.54248H9.98877Z'/%3e%3c/svg%3e", Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
541
+ }, Symbol.toStringTag, { value: "Module" })), Gt = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M9.98877,7.98169A4.05782,4.05782,0,0,0,6,12.05493v5.44885A0.49622,0.49622,0,0,1,5.50378,18H4.49731a0.49614,0.49614,0,0,1-.49615-0.49683L4.00311,16H4V12.05493A6.06019,6.06019,0,0,1,9.989,5.98169L10,5.97986V5.98169h1.98755a0.35757,0.35757,0,0,0,.37738-0.54242L11.02118,2.48743A0.38659,0.38659,0,0,1,11.64471,2.078L17.9917,7l-6.347,4.88544a0.38659,0.38659,0,0,1-.62354-0.40942l1.34375-2.95184a0.3576,0.3576,0,0,0-.37738-0.54248H9.98877Z'/%3e%3c/svg%3e", Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
542
542
  __proto__: null,
543
- default: Wt
543
+ default: Gt
544
544
  }, Symbol.toStringTag, { value: "Module" })), Kt = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M15.49771,18a0.49779,0.49779,0,0,1-.49779-0.49779V5.00391l-0.27979-.00635a2.56758,2.56758,0,0,0-2.0957.79L7.22917,10.40041a0.34918,0.34918,0,0,0,.08252.63177l2.92877,1.39331a0.38658,0.38658,0,0,1-.21344.71472l-8.0105.33209,1.69568-7.836a0.38661,0.38661,0,0,1,.74072-0.0882l0.8725,3.12372a0.35757,0.35757,0,0,0,.638.17206L5.9672,8.84835,11.3593,4.23926A4.46634,4.46634,0,0,1,14.74406,2.998L15.00822,3a1.92935,1.92935,0,0,1,1.43408.56885,2.10247,2.10247,0,0,1,.55713,1.46045L16.9999,17.50219A0.49779,0.49779,0,0,1,16.50211,18h-1.0044Z'/%3e%3c/svg%3e", Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
545
545
  __proto__: null,
546
546
  default: Kt
@@ -619,9 +619,9 @@ const _0 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%
619
619
  }, Symbol.toStringTag, { value: "Module" })), R2 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M7,6.2A3.8,3.8,0,1,1,3.2,10,3.80428,3.80428,0,0,1,7,6.2m0,7A3.2,3.2,0,1,0,3.8,10,3.20362,3.20362,0,0,0,7,13.2M7,6a4,4,0,1,0,4,4A4.00458,4.00458,0,0,0,7,6H7Zm0,7a3,3,0,1,1,3-3,3.00328,3.00328,0,0,1-3,3H7Zm7.83777-5.45184a0.1933,0.1933,0,0,0-.31177.20471l0.67188,1.47589A0.17881,0.17881,0,0,1,15.00916,9.5H10V10a2.99994,2.99994,0,0,1-3,3H6.5v4h1V13.96924A4.0032,4.0032,0,0,0,10.96924,10.5h4.03992a0.17881,0.17881,0,0,1,.18872.27124L14.526,12.24713a0.1933,0.1933,0,0,0,.31177.20471L18.00916,10Z'/%3e%3c/svg%3e", j2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
620
620
  __proto__: null,
621
621
  default: R2
622
- }, Symbol.toStringTag, { value: "Module" })), W2 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M10.994,5.2A3.8,3.8,0,1,1,7.194,9a3.80428,3.80428,0,0,1,3.8-3.8m0,7A3.2,3.2,0,1,0,7.794,9a3.20362,3.20362,0,0,0,3.2,3.2m0-7.2a4,4,0,1,0,4,4,4.00458,4.00458,0,0,0-4-4h0Zm0,7a3,3,0,1,1,3-3,3.00328,3.00328,0,0,1-3,3h0Zm2.8291-5.82812a4.03583,4.03583,0,0,0-.54248-0.45459,4.07906,4.07906,0,0,0-5.11475.4541,4.00058,4.00058,0,0,0-.33252,5.28076L4.76758,14.51792a0.17873,0.17873,0,0,1-.325-0.05847L3.874,12.94071a0.19332,0.19332,0,0,0-.36523.07568L3,16.99265l3.97626-.50879a0.19332,0.19332,0,0,0,.07568-0.36523L5.5332,15.55008a0.17879,0.17879,0,0,1-.05835-0.3252l-0.00037-.00037,3.40378-3.40567,0.33838-.353-0.34521-.34619A2.9995,2.9995,0,0,1,8.8729,6.87842a3.06063,3.06063,0,0,1,3.83545-.34082,3.02673,3.02673,0,0,1,.40771.34131A3,3,0,0,1,10.994,12h-0.5v4h1V12.96924A4.00076,4.00076,0,0,0,13.82309,6.17188Z'/%3e%3c/svg%3e", G2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
622
+ }, Symbol.toStringTag, { value: "Module" })), G2 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M10.994,5.2A3.8,3.8,0,1,1,7.194,9a3.80428,3.80428,0,0,1,3.8-3.8m0,7A3.2,3.2,0,1,0,7.794,9a3.20362,3.20362,0,0,0,3.2,3.2m0-7.2a4,4,0,1,0,4,4,4.00458,4.00458,0,0,0-4-4h0Zm0,7a3,3,0,1,1,3-3,3.00328,3.00328,0,0,1-3,3h0Zm2.8291-5.82812a4.03583,4.03583,0,0,0-.54248-0.45459,4.07906,4.07906,0,0,0-5.11475.4541,4.00058,4.00058,0,0,0-.33252,5.28076L4.76758,14.51792a0.17873,0.17873,0,0,1-.325-0.05847L3.874,12.94071a0.19332,0.19332,0,0,0-.36523.07568L3,16.99265l3.97626-.50879a0.19332,0.19332,0,0,0,.07568-0.36523L5.5332,15.55008a0.17879,0.17879,0,0,1-.05835-0.3252l-0.00037-.00037,3.40378-3.40567,0.33838-.353-0.34521-.34619A2.9995,2.9995,0,0,1,8.8729,6.87842a3.06063,3.06063,0,0,1,3.83545-.34082,3.02673,3.02673,0,0,1,.40771.34131A3,3,0,0,1,10.994,12h-0.5v4h1V12.96924A4.00076,4.00076,0,0,0,13.82309,6.17188Z'/%3e%3c/svg%3e", W2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
623
623
  __proto__: null,
624
- default: W2
624
+ default: G2
625
625
  }, Symbol.toStringTag, { value: "Module" })), K2 = "data:image/svg+xml,%3csvg%20id='WORKING_ICONS'%20data-name='WORKING%20ICONS'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3ctitle%3edirection%3c/title%3e%3cpath%20fill='%23000000'%20d='M8.97217,5.2a3.8,3.8,0,1,1-3.8,3.8,3.8043,3.8043,0,0,1,3.8-3.8m0,7a3.2,3.2,0,1,0-3.2-3.2,3.20361,3.20361,0,0,0,3.2,3.2m0-7.2a4,4,0,1,0,4,4,4.00458,4.00458,0,0,0-4-4h0Zm0,7a3,3,0,1,1,3-3,3.00328,3.00328,0,0,1-3,3h0Zm7.491,1.02374a0.19328,0.19328,0,0,0-.36517-0.07568L15.52948,14.4668a0.17883,0.17883,0,0,1-.32526.05835l-0.00018.00018-3.75726-3.75726-0.35352.35352A2.98022,2.98022,0,0,1,8.97217,12h-0.5v4h1V12.96924a3.95621,3.95621,0,0,0,1.95264-.80859l3.07312,3.07275a0.17841,0.17841,0,0,1-.05914.324L12.9201,16.126a0.1933,0.1933,0,0,0,.07568.36523L16.972,17Z'/%3e%3c/svg%3e", P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
626
626
  __proto__: null,
627
627
  default: K2
@@ -691,7 +691,7 @@ var I3 = Object.defineProperty, A3 = Object.getOwnPropertyDescriptor, $ = (a, t,
691
691
  (l = a[s]) && (o = (i ? l(t, e, o) : l(o)) || o);
692
692
  return i && o && I3(t, e, o), o;
693
693
  };
694
- const N3 = /* @__PURE__ */ Object.assign({ "./assets/directions/arrive.svg": h0, "./assets/directions/arrive_left.svg": u0, "./assets/directions/arrive_right.svg": m0, "./assets/directions/arrive_straight.svg": w0, "./assets/directions/close.svg": O0, "./assets/directions/continue.svg": S0, "./assets/directions/continue_left.svg": A0, "./assets/directions/continue_right.svg": L0, "./assets/directions/continue_slight_left.svg": x0, "./assets/directions/continue_slight_right.svg": M0, "./assets/directions/continue_straight.svg": j0, "./assets/directions/continue_uturn.svg": G0, "./assets/directions/depart.svg": P0, "./assets/directions/depart_left.svg": V0, "./assets/directions/depart_right.svg": T0, "./assets/directions/depart_straight.svg": z0, "./assets/directions/end_of_road_left.svg": E0, "./assets/directions/end_of_road_right.svg": k0, "./assets/directions/flag.svg": F0, "./assets/directions/fork.svg": J0, "./assets/directions/fork_left.svg": Q0, "./assets/directions/fork_right.svg": tt, "./assets/directions/fork_slight_left.svg": it, "./assets/directions/fork_slight_right.svg": ot, "./assets/directions/fork_straight.svg": lt, "./assets/directions/invalid.svg": nt, "./assets/directions/invalid_left.svg": gt, "./assets/directions/invalid_right.svg": _t, "./assets/directions/invalid_slight_left.svg": vt, "./assets/directions/invalid_slight_right.svg": pt, "./assets/directions/invalid_straight.svg": ft, "./assets/directions/invalid_uturn.svg": Ot, "./assets/directions/merge_left.svg": St, "./assets/directions/merge_right.svg": At, "./assets/directions/merge_slight_left.svg": Lt, "./assets/directions/merge_slight_right.svg": xt, "./assets/directions/merge_straight.svg": Mt, "./assets/directions/new_name_left.svg": jt, "./assets/directions/new_name_right.svg": Gt, "./assets/directions/new_name_sharp_left.svg": Pt, "./assets/directions/new_name_sharp_right.svg": Vt, "./assets/directions/new_name_slight_left.svg": Tt, "./assets/directions/new_name_slight_right.svg": zt, "./assets/directions/new_name_straight.svg": Et, "./assets/directions/notification_left.svg": kt, "./assets/directions/notification_right.svg": Ft, "./assets/directions/notification_sharp_left.svg": Jt, "./assets/directions/notification_sharp_right.svg": Qt, "./assets/directions/notification_slight_left.svg": t2, "./assets/directions/notification_slight_right.svg": i2, "./assets/directions/notification_straight.svg": o2, "./assets/directions/off_ramp_left.svg": l2, "./assets/directions/off_ramp_right.svg": n2, "./assets/directions/off_ramp_slight_left.svg": g2, "./assets/directions/off_ramp_slight_right.svg": _2, "./assets/directions/on_ramp_left.svg": v2, "./assets/directions/on_ramp_right.svg": p2, "./assets/directions/on_ramp_sharp_left.svg": f2, "./assets/directions/on_ramp_sharp_right.svg": O2, "./assets/directions/on_ramp_slight_left.svg": S2, "./assets/directions/on_ramp_slight_right.svg": A2, "./assets/directions/on_ramp_straight.svg": L2, "./assets/directions/rotary.svg": x2, "./assets/directions/rotary_left.svg": M2, "./assets/directions/rotary_right.svg": j2, "./assets/directions/rotary_sharp_left.svg": G2, "./assets/directions/rotary_sharp_right.svg": P2, "./assets/directions/rotary_slight_left.svg": V2, "./assets/directions/rotary_slight_right.svg": T2, "./assets/directions/rotary_straight.svg": z2, "./assets/directions/roundabout.svg": E2, "./assets/directions/roundabout_left.svg": k2, "./assets/directions/roundabout_right.svg": F2, "./assets/directions/roundabout_sharp_left.svg": J2, "./assets/directions/roundabout_sharp_right.svg": Q2, "./assets/directions/roundabout_slight_left.svg": t3, "./assets/directions/roundabout_slight_right.svg": i3, "./assets/directions/roundabout_straight.svg": o3, "./assets/directions/turn_left.svg": l3, "./assets/directions/turn_right.svg": n3, "./assets/directions/turn_sharp_left.svg": g3, "./assets/directions/turn_sharp_right.svg": _3, "./assets/directions/turn_slight_left.svg": v3, "./assets/directions/turn_slight_right.svg": p3, "./assets/directions/turn_straight.svg": f3, "./assets/directions/updown.svg": O3, "./assets/directions/uturn.svg": S3 });
694
+ const N3 = /* @__PURE__ */ Object.assign({ "./assets/directions/arrive.svg": h0, "./assets/directions/arrive_left.svg": u0, "./assets/directions/arrive_right.svg": m0, "./assets/directions/arrive_straight.svg": w0, "./assets/directions/close.svg": O0, "./assets/directions/continue.svg": S0, "./assets/directions/continue_left.svg": A0, "./assets/directions/continue_right.svg": L0, "./assets/directions/continue_slight_left.svg": x0, "./assets/directions/continue_slight_right.svg": M0, "./assets/directions/continue_straight.svg": j0, "./assets/directions/continue_uturn.svg": W0, "./assets/directions/depart.svg": P0, "./assets/directions/depart_left.svg": V0, "./assets/directions/depart_right.svg": T0, "./assets/directions/depart_straight.svg": z0, "./assets/directions/end_of_road_left.svg": E0, "./assets/directions/end_of_road_right.svg": k0, "./assets/directions/flag.svg": F0, "./assets/directions/fork.svg": J0, "./assets/directions/fork_left.svg": Q0, "./assets/directions/fork_right.svg": tt, "./assets/directions/fork_slight_left.svg": it, "./assets/directions/fork_slight_right.svg": ot, "./assets/directions/fork_straight.svg": lt, "./assets/directions/invalid.svg": nt, "./assets/directions/invalid_left.svg": gt, "./assets/directions/invalid_right.svg": _t, "./assets/directions/invalid_slight_left.svg": vt, "./assets/directions/invalid_slight_right.svg": pt, "./assets/directions/invalid_straight.svg": ft, "./assets/directions/invalid_uturn.svg": Ot, "./assets/directions/merge_left.svg": St, "./assets/directions/merge_right.svg": At, "./assets/directions/merge_slight_left.svg": Lt, "./assets/directions/merge_slight_right.svg": xt, "./assets/directions/merge_straight.svg": Mt, "./assets/directions/new_name_left.svg": jt, "./assets/directions/new_name_right.svg": Wt, "./assets/directions/new_name_sharp_left.svg": Pt, "./assets/directions/new_name_sharp_right.svg": Vt, "./assets/directions/new_name_slight_left.svg": Tt, "./assets/directions/new_name_slight_right.svg": zt, "./assets/directions/new_name_straight.svg": Et, "./assets/directions/notification_left.svg": kt, "./assets/directions/notification_right.svg": Ft, "./assets/directions/notification_sharp_left.svg": Jt, "./assets/directions/notification_sharp_right.svg": Qt, "./assets/directions/notification_slight_left.svg": t2, "./assets/directions/notification_slight_right.svg": i2, "./assets/directions/notification_straight.svg": o2, "./assets/directions/off_ramp_left.svg": l2, "./assets/directions/off_ramp_right.svg": n2, "./assets/directions/off_ramp_slight_left.svg": g2, "./assets/directions/off_ramp_slight_right.svg": _2, "./assets/directions/on_ramp_left.svg": v2, "./assets/directions/on_ramp_right.svg": p2, "./assets/directions/on_ramp_sharp_left.svg": f2, "./assets/directions/on_ramp_sharp_right.svg": O2, "./assets/directions/on_ramp_slight_left.svg": S2, "./assets/directions/on_ramp_slight_right.svg": A2, "./assets/directions/on_ramp_straight.svg": L2, "./assets/directions/rotary.svg": x2, "./assets/directions/rotary_left.svg": M2, "./assets/directions/rotary_right.svg": j2, "./assets/directions/rotary_sharp_left.svg": W2, "./assets/directions/rotary_sharp_right.svg": P2, "./assets/directions/rotary_slight_left.svg": V2, "./assets/directions/rotary_slight_right.svg": T2, "./assets/directions/rotary_straight.svg": z2, "./assets/directions/roundabout.svg": E2, "./assets/directions/roundabout_left.svg": k2, "./assets/directions/roundabout_right.svg": F2, "./assets/directions/roundabout_sharp_left.svg": J2, "./assets/directions/roundabout_sharp_right.svg": Q2, "./assets/directions/roundabout_slight_left.svg": t3, "./assets/directions/roundabout_slight_right.svg": i3, "./assets/directions/roundabout_straight.svg": o3, "./assets/directions/turn_left.svg": l3, "./assets/directions/turn_right.svg": n3, "./assets/directions/turn_sharp_left.svg": g3, "./assets/directions/turn_sharp_right.svg": _3, "./assets/directions/turn_slight_left.svg": v3, "./assets/directions/turn_slight_right.svg": p3, "./assets/directions/turn_straight.svg": f3, "./assets/directions/updown.svg": O3, "./assets/directions/uturn.svg": S3 });
695
695
  let b = class extends N {
696
696
  constructor() {
697
697
  super(...arguments), this.visualInstruction = null;
@@ -721,7 +721,7 @@ b.styles = [
721
721
  `
722
722
  ];
723
723
  $([
724
- g()
724
+ c()
725
725
  ], b.prototype, "visualInstruction", 2);
726
726
  b = $([
727
727
  y("maneuver-image")
@@ -797,7 +797,7 @@ S.styles = [
797
797
  `
798
798
  ];
799
799
  z([
800
- g()
800
+ c()
801
801
  ], S.prototype, "tripState", 2);
802
802
  S = z([
803
803
  y("instructions-view")
@@ -872,7 +872,7 @@ I.styles = [
872
872
  `
873
873
  ];
874
874
  B([
875
- g()
875
+ c()
876
876
  ], I.prototype, "tripState", 2);
877
877
  I = B([
878
878
  y("trip-progress-view")
@@ -894,7 +894,7 @@ function V(a) {
894
894
  speed: t
895
895
  };
896
896
  }
897
- class W3 {
897
+ class G3 {
898
898
  constructor() {
899
899
  this.simulationState = null, this.isRunning = false, this.lastLocation = null, this.lastHeading = null, this.warpFactor = 1, this.updateCallback = () => {
900
900
  };
@@ -981,20 +981,20 @@ class T3 {
981
981
  this.lastLocation = null, navigator.geolocation && this.geolocationWatchId && (navigator.geolocation.clearWatch(this.geolocationWatchId), this.geolocationWatchId = null);
982
982
  }
983
983
  }
984
- var G3 = Object.defineProperty, K3 = Object.getOwnPropertyDescriptor, h = (a, t, e, i) => {
984
+ var W3 = Object.defineProperty, K3 = Object.getOwnPropertyDescriptor, h = (a, t, e, i) => {
985
985
  for (var o = i > 1 ? void 0 : i ? K3(t, e) : t, s = a.length - 1, l; s >= 0; s--)
986
986
  (l = a[s]) && (o = (i ? l(t, e, o) : l(o)) || o);
987
- return i && o && G3(t, e, o), o;
987
+ return i && o && W3(t, e, o), o;
988
988
  };
989
- let c = class extends N {
989
+ let n = class extends N {
990
990
  constructor() {
991
- super(), this.valhallaEndpointUrl = "", this.profile = "", this.httpClient = fetch, this.options = {}, this._tripState = null, this.useVoiceGuidance = false, this.geolocateOnLoad = true, this.routeAdapter = null, this.geolocateControl = null, this.navigationController = null, this.simulatedLocationMarker = null, this.lastSpokenUtteranceId = null, this.httpClient === fetch && (this.httpClient = this.httpClient.bind(window));
991
+ super(), this.valhallaEndpointUrl = "", this.profile = "", this.httpClient = fetch, this.options = {}, this._tripState = null, this.useVoiceGuidance = false, this.geolocateOnLoad = true, this.addGeolocateControl = true, this.routeAdapter = null, this.geolocateControl = null, this.navigationController = null, this.simulatedLocationMarker = null, this.lastSpokenUtteranceId = null, this.httpClient === fetch && (this.httpClient = this.httpClient.bind(window));
992
992
  }
993
993
  updated(a) {
994
994
  a.has("locationProvider") && this.locationProvider && (this.locationProvider.updateCallback = this.onLocationUpdated.bind(this));
995
995
  }
996
996
  firstUpdated() {
997
- this.geolocateControl = new U({
997
+ this.addGeolocateControl && (this.geolocateControl = new U({
998
998
  positionOptions: {
999
999
  enableHighAccuracy: true
1000
1000
  },
@@ -1002,7 +1002,7 @@ let c = class extends N {
1002
1002
  }), this.map.addControl(this.geolocateControl), this.map.on("load", (a) => {
1003
1003
  var _a;
1004
1004
  this.geolocateOnLoad && ((_a = this.geolocateControl) == null ? void 0 : _a.trigger());
1005
- });
1005
+ }));
1006
1006
  }
1007
1007
  // TODO: type
1008
1008
  async getRoutes(a, t) {
@@ -1081,7 +1081,7 @@ let c = class extends N {
1081
1081
  "route"
1082
1082
  ), (_d = this.map) == null ? void 0 : _d.flyTo({
1083
1083
  center: a.geometry[0]
1084
- }), this.locationProvider instanceof W3 && (this.simulatedLocationMarker = new E.Marker({
1084
+ }), this.locationProvider instanceof G3 && (this.simulatedLocationMarker = new E.Marker({
1085
1085
  color: "green"
1086
1086
  }).setLngLat(a.geometry[0]).addTo(this.map));
1087
1087
  }
@@ -1149,7 +1149,7 @@ let c = class extends N {
1149
1149
  `;
1150
1150
  }
1151
1151
  };
1152
- c.styles = [
1152
+ n.styles = [
1153
1153
  A`
1154
1154
  [hidden] {
1155
1155
  display: none !important;
@@ -1223,49 +1223,52 @@ c.styles = [
1223
1223
  `
1224
1224
  ];
1225
1225
  h([
1226
- g()
1227
- ], c.prototype, "valhallaEndpointUrl", 2);
1226
+ c()
1227
+ ], n.prototype, "valhallaEndpointUrl", 2);
1228
1228
  h([
1229
- g()
1230
- ], c.prototype, "profile", 2);
1229
+ c()
1230
+ ], n.prototype, "profile", 2);
1231
1231
  h([
1232
- g({ attribute: false })
1233
- ], c.prototype, "httpClient", 2);
1232
+ c({ attribute: false })
1233
+ ], n.prototype, "httpClient", 2);
1234
1234
  h([
1235
- g({ type: Object, attribute: false })
1236
- ], c.prototype, "locationProvider", 2);
1235
+ c({ type: Object, attribute: false })
1236
+ ], n.prototype, "locationProvider", 2);
1237
1237
  h([
1238
- g({ type: Object, attribute: false })
1239
- ], c.prototype, "options", 2);
1238
+ c({ type: Object, attribute: false })
1239
+ ], n.prototype, "options", 2);
1240
1240
  h([
1241
1241
  c0()
1242
- ], c.prototype, "_tripState", 2);
1242
+ ], n.prototype, "_tripState", 2);
1243
+ h([
1244
+ c({ type: Function, attribute: false })
1245
+ ], n.prototype, "onNavigationStart", 2);
1243
1246
  h([
1244
- g({ type: Function, attribute: false })
1245
- ], c.prototype, "onNavigationStart", 2);
1247
+ c({ type: Function, attribute: false })
1248
+ ], n.prototype, "onNavigationStop", 2);
1246
1249
  h([
1247
- g({ type: Function, attribute: false })
1248
- ], c.prototype, "onNavigationStop", 2);
1250
+ c({ type: Function, attribute: true })
1251
+ ], n.prototype, "onTripStateChange", 2);
1249
1252
  h([
1250
- g({ type: Function, attribute: true })
1251
- ], c.prototype, "onTripStateChange", 2);
1253
+ c({ type: Object, attribute: false })
1254
+ ], n.prototype, "customStyles", 2);
1252
1255
  h([
1253
- g({ type: Object, attribute: false })
1254
- ], c.prototype, "customStyles", 2);
1256
+ c({ type: Boolean })
1257
+ ], n.prototype, "useVoiceGuidance", 2);
1255
1258
  h([
1256
- g({ type: Boolean })
1257
- ], c.prototype, "useVoiceGuidance", 2);
1259
+ c({ type: Boolean })
1260
+ ], n.prototype, "geolocateOnLoad", 2);
1258
1261
  h([
1259
- g({ type: Boolean })
1260
- ], c.prototype, "geolocateOnLoad", 2);
1262
+ c({ type: Boolean })
1263
+ ], n.prototype, "addGeolocateControl", 2);
1261
1264
  h([
1262
- g({ type: Object })
1263
- ], c.prototype, "map", 2);
1264
- c = h([
1265
+ c({ type: Object })
1266
+ ], n.prototype, "map", 2);
1267
+ n = h([
1265
1268
  y("ferrostar-map")
1266
- ], c);
1269
+ ], n);
1267
1270
  export {
1268
1271
  T3 as BrowserLocationProvider,
1269
- c as FerrostarMap,
1270
- W3 as SimulatedLocationProvider
1272
+ n as FerrostarMap,
1273
+ G3 as SimulatedLocationProvider
1271
1274
  };