@stadiamaps/ferrostar-webcomponents 0.10.1 → 0.11.0

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.
@@ -1,6 +1,5 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
- import { default as maplibregl, LngLatLike } from 'maplibre-gl';
3
- import { MapLibreSearchControl } from '@stadiamaps/maplibre-search-box';
2
+ import { default as maplibregl, GeolocateControl, LngLatLike, Map } from 'maplibre-gl';
4
3
  import { NavigationController, RouteAdapter } from '@stadiamaps/ferrostar';
5
4
  export declare class FerrostarMap extends LitElement {
6
5
  valhallaEndpointUrl: string;
@@ -13,13 +12,29 @@ export declare class FerrostarMap extends LitElement {
13
12
  locationProvider: any;
14
13
  costingOptions: object;
15
14
  protected _tripState: any;
16
- useIntegratedSearchBox: boolean;
15
+ configureMap?: (map: Map) => void;
16
+ onNavigationStart?: (map: Map) => void;
17
+ onNavigationStop?: (map: Map) => void;
18
+ /**
19
+ * Styles to load which will apply inside the component
20
+ * (ex: for MapLibre plugins)
21
+ */
22
+ customStyles?: object | null;
23
+ /**
24
+ * Enables voice guidance via the web speech synthesis API.
25
+ * Defaults to false.
26
+ */
17
27
  useVoiceGuidance: boolean;
28
+ /**
29
+ * Automatically geolocates the user on map load.
30
+ * Defaults to true.
31
+ */
32
+ geolocateOnLoad: boolean;
18
33
  routeAdapter: RouteAdapter | null;
19
34
  map: maplibregl.Map | null;
20
- searchBox: MapLibreSearchControl | null;
35
+ geolocateControl: GeolocateControl | null;
21
36
  navigationController: NavigationController | null;
22
- currentLocationMapMarker: maplibregl.Marker | null;
37
+ simulatedLocationMarker: maplibregl.Marker | null;
23
38
  lastSpokenInstructionText: string | null;
24
39
  static styles: import('lit').CSSResult[];
25
40
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"ferrostar-map.d.ts","sourceRoot":"","sources":["../src/ferrostar-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,cA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