mobility-toolbox-js 3.0.0-beta.31 → 3.0.0-beta.32

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,14 +1,17 @@
1
1
  import { MapLibreLayer } from '@geoblocks/ol-maplibre-layer';
2
2
  import OlMap from 'ol/Map';
3
3
  import { MobilityLayerOptions } from '../mixins/MobilityLayerMixin';
4
- import type { MapLibreLayerOptions, MapLibreOptions } from '@geoblocks/ol-maplibre-layer/lib/types/MapLibreLayer';
5
- export type MaplibreLayerOptions = MapLibreLayerOptions & MobilityLayerOptions & {
4
+ import type { MapLibreOptions } from '@geoblocks/ol-maplibre-layer/lib/types/MapLibreLayer';
5
+ import type { QueryRenderedFeaturesOptions } from 'maplibre-gl';
6
+ import type { Options as LayerOptions } from 'ol/layer/Layer';
7
+ export type MaplibreLayerOptions = {
6
8
  apiKey?: string;
7
9
  apiKeyName?: string;
8
10
  mapLibreOptions?: MapLibreOptions;
11
+ queryRenderedFeaturesOptions?: QueryRenderedFeaturesOptions | undefined;
9
12
  style?: maplibregl.StyleSpecification | null | string;
10
13
  url?: string;
11
- };
14
+ } & LayerOptions & MobilityLayerOptions;
12
15
  declare const MaplibreLayer_base: {
13
16
  new (...args: any[]): {
14
17
  olEventsKeys: import("ol/events").EventsKey[];
@@ -16,9 +19,9 @@ declare const MaplibreLayer_base: {
16
19
  attachToMap(map: OlMap): void;
17
20
  detachFromMap(): void;
18
21
  flat(): any[];
19
- onChildrenChange(oldValue: import("ol/layer").Layer[]): void;
22
+ onChildrenChange(oldValue: import("ol/layer/Layer").default[]): void;
20
23
  setMapInternal: ((map: OlMap) => void) & ((map: import("ol/Map").default | null) => void);
21
- children: import("ol/layer").Layer<import("ol/source").Source, import("ol/renderer/Layer").default<any>>[];
24
+ children: import("ol/layer/Layer").default<import("ol/source").Source, import("ol/renderer/Layer").default<any>>[];
22
25
  get copyrights(): string;
23
26
  set copyrights(newCopyrights: string | string[]);
24
27
  disabled: boolean;
@@ -27,8 +30,8 @@ declare const MaplibreLayer_base: {
27
30
  readonly key: string;
28
31
  readonly map: OlMap;
29
32
  readonly name: string;
30
- olLayer: import("ol/layer").Layer;
31
- parent: import("ol/layer").Layer<import("ol/source").Source, import("ol/renderer/Layer").default<any>>;
33
+ olLayer: import("ol/layer/Layer").default;
34
+ parent: import("ol/layer/Layer").default<import("ol/source").Source, import("ol/renderer/Layer").default<any>>;
32
35
  visible: boolean;
33
36
  on: import("ol/layer/Layer").LayerOnSignature<import("ol/events").EventsKey>;
34
37
  once: import("ol/layer/Layer").LayerOnSignature<import("ol/events").EventsKey>;
@@ -52,7 +55,7 @@ declare const MaplibreLayer_base: {
52
55
  getBackground: () => import("ol/layer/Base").BackgroundColor | false;
53
56
  getClassName: () => string;
54
57
  getLayerState: (managed?: boolean | undefined) => import("ol/layer/Layer").State;
55
- getLayersArray: (array?: import("ol/layer").default<import("ol/source").default, import("ol/renderer/Layer").default<any>>[] | undefined) => Array<import("ol/layer").default>;
58
+ getLayersArray: (array?: import("ol/layer/Layer").default<import("ol/source").default, import("ol/renderer/Layer").default<any>>[] | undefined) => Array<import("ol/layer/Layer").default>;
56
59
  getLayerStatesArray: (states?: import("ol/layer/Layer").State[] | undefined) => Array<import("ol/layer/Layer").State>;
57
60
  getExtent: () => import("ol/extent").Extent | undefined;
58
61
  getMaxResolution: () => number;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mobility-toolbox-js",
3
3
  "license": "MIT",
4
4
  "description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
5
- "version": "3.0.0-beta.31",
5
+ "version": "3.0.0-beta.32",
6
6
  "homepage": "https://mobility-toolbox-js.geops.io/",
7
7
  "exports": {
8
8
  ".": "./index.js",