@mappable-world/mappable-types 0.0.20 → 0.0.22

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.
Files changed (62) hide show
  1. package/common/types/bounds.d.ts +2 -2
  2. package/common/types/data-source-description.d.ts +8 -0
  3. package/common/types/layer-implementation.d.ts +6 -2
  4. package/imperative/DomContext.d.ts +2 -2
  5. package/imperative/Entities.d.ts +1 -0
  6. package/imperative/MMap/index.d.ts +78 -8
  7. package/imperative/MMap/projection.d.ts +1 -1
  8. package/imperative/MMapCollection/index.d.ts +18 -0
  9. package/imperative/MMapContainer/index.d.ts +14 -0
  10. package/imperative/MMapContextProvider/index.d.ts +50 -0
  11. package/imperative/MMapControl/MMapControl.d.ts +2 -1
  12. package/imperative/MMapControl/MMapControlButton.d.ts +26 -3
  13. package/imperative/MMapControls/index.d.ts +1 -1
  14. package/imperative/MMapCopyrights/index.d.ts +15 -16
  15. package/imperative/MMapDefaultSchemeLayer/index.d.ts +33 -2
  16. package/imperative/MMapEnities.d.ts +48 -1
  17. package/imperative/MMapFeature/index.d.ts +23 -11
  18. package/imperative/MMapFeature/types.d.ts +28 -4
  19. package/imperative/MMapHotspot/index.d.ts +14 -0
  20. package/imperative/MMapListener/index.d.ts +3 -1
  21. package/imperative/MMapMarker/index.d.ts +5 -5
  22. package/imperative/MMapReactContainer/index.d.ts +12 -3
  23. package/imperative/MMapScaleControl/index.d.ts +22 -0
  24. package/imperative/MMapTileDataSource/index.d.ts +2 -3
  25. package/imperative/ThemeContext.d.ts +7 -1
  26. package/imperative/TypeContext.d.ts +9 -0
  27. package/imperative/config.d.ts +25 -0
  28. package/imperative/fetchConfig.d.ts +3 -1
  29. package/imperative/index.d.ts +3 -1
  30. package/imperative/{utils/projections → projections}/web-mercator.d.ts +5 -7
  31. package/modules/layers-extra/MMapCarparksLayer.d.ts +50 -0
  32. package/modules/layers-extra/MMapPanoramaLayer.d.ts +52 -0
  33. package/modules/layers-extra/MMapTrafficEventsLayer.d.ts +58 -0
  34. package/modules/layers-extra/MMapTrafficLayer.d.ts +36 -0
  35. package/modules/layers-extra/index.d.ts +4 -0
  36. package/modules/layers-extra/utils.d.ts +1 -0
  37. package/modules/ruler/EventsBlockerLayer.d.ts +10 -0
  38. package/modules/ruler/MMapRuler.d.ts +66 -0
  39. package/modules/ruler/MMapRulerCommon.d.ts +102 -0
  40. package/modules/ruler/index.d.ts +2 -0
  41. package/modules/ruler/react/MMapRuler.d.ts +11 -0
  42. package/modules/ruler/utils.d.ts +54 -0
  43. package/modules/ruler/vue/MMapRuler.d.ts +6 -0
  44. package/modules/types.d.ts +1 -0
  45. package/modules/vuefy/options/common.d.ts +2 -1
  46. package/package.json +1 -1
  47. package/packages/clusterer/MMapClusterer/MMapClusterer.d.ts +2 -2
  48. package/packages/hint/MMapHint/index.d.ts +1 -1
  49. package/packages/markers/MMapDefaultMarker/index.d.ts +5 -5
  50. package/reactify/reactify.d.ts +1 -0
  51. package/imperative/MMapCoverage/index.d.ts +0 -20
  52. package/imperative/utils/allowed-custom-layer-implementations.d.ts +0 -1
  53. package/imperative/utils/deepFreeze.d.ts +0 -2
  54. package/imperative/utils/errorLogger.d.ts +0 -29
  55. package/imperative/utils/id.d.ts +0 -2
  56. package/imperative/utils/index.d.ts +0 -3
  57. package/imperative/utils/jsonp.d.ts +0 -9
  58. package/imperative/utils/metrics.d.ts +0 -12
  59. package/imperative/utils/pEachChunk.d.ts +0 -2
  60. package/imperative/utils/removeUndefined.d.ts +0 -1
  61. package/imperative/utils/requestCoverage.d.ts +0 -10
  62. /package/imperative/{utils/projections → projections}/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import type { LineStringGeometry, Margin, MultiLineStringGeometry, MultiPolygonGeometry, PointGeometry, PolygonGeometry } from "../../common/types";
1
+ import type { LineStringGeometry, Margin, MultiLineStringGeometry, MultiPolygonGeometry, PointGeometry, PolygonGeometry, LngLat } from "../../common/types";
2
2
  export interface DraggableProps<Callback> {
3
3
  /** Feature can be draggable */
4
4
  draggable?: boolean;
@@ -32,13 +32,37 @@ export interface BlockingProps {
32
32
  */
33
33
  blockBehaviors?: boolean;
34
34
  }
35
+ export interface MapEvent {
36
+ /** [x, y] */
37
+ screenCoordinates: [
38
+ number,
39
+ number
40
+ ];
41
+ coordinates: LngLat;
42
+ stopPropagation: () => void;
43
+ }
35
44
  export interface FeatureClickEvents {
36
45
  /** Double click handler */
37
- onDoubleClick?: (event: MouseEvent) => void;
46
+ onDoubleClick?: (event: MouseEvent, mapEvent: MapEvent) => void;
38
47
  /** Click handler */
39
- onClick?: (event: MouseEvent) => void;
48
+ onClick?: (event: MouseEvent, mapEvent: MapEvent) => void;
40
49
  /** Fast click handler */
41
- onFastClick?: (event: MouseEvent) => void;
50
+ onFastClick?: (event: MouseEvent, mapEvent: MapEvent) => void;
42
51
  }
43
52
  export type Geometry = PolygonGeometry | MultiPolygonGeometry | LineStringGeometry | MultiLineStringGeometry | PointGeometry;
53
+ /**
54
+ * Feature drag event handler.
55
+ * ```typescript
56
+ * function onDragEvent(type, coordinates) => {
57
+ * console.log('Event:', type, coordinates);
58
+ * };
59
+ * const feature = new MMapFeature({
60
+ * geometry: {...},
61
+ * draggable: true,
62
+ * onDragStart: onDragEvent.bind(null, 'dragStart'),
63
+ * onDragMove: onDragEvent.bind(null, 'dragMove'),
64
+ * onDragEnd: onDragEvent.bind(null, 'dragEnd'),
65
+ * });
66
+ * ```
67
+ */
44
68
  export type MMapFeatureEventHandler = (coordinates: Geometry['coordinates']) => void | false;
@@ -1,7 +1,21 @@
1
1
  import type { GenericGeometry, LngLat } from "../../common/types";
2
2
  /**
3
+ * Some active area on the map that can be clicked.
3
4
  * This is not a real MMapEntity, it cannot be added to the map.
4
5
  * But you can check it by `instance of` in MMapListener handlers
6
+ * For example, in [custom layers](https://mappable.world/docs/js-api/dg/concepts/custom-layers.html) you can pass an object of this type in the `findObjectInPosition` method
7
+ * Or just listen to the `onEventName` event and check the object:
8
+ * ```javascript
9
+ * const map = new mappable.MMap(document.getElementById('map-root'), {...});
10
+ * map.addChild(new mappable.MMapListener({
11
+ * layer: 'any',
12
+ * onClick: (object) => {
13
+ * if (object instanceof mappable.MMapHotspot) {
14
+ * console.log('Hotspot clicked', object);
15
+ * }
16
+ * }
17
+ * }))
18
+ * ```
5
19
  */
6
20
  declare class MMapHotspot {
7
21
  private static _uid;
@@ -15,6 +15,8 @@ export interface DomEvent {
15
15
  type HandlerEntity<TType extends string, TEntity> = {
16
16
  type: TType;
17
17
  entity: TEntity;
18
+ layer: string;
19
+ source: string;
18
20
  };
19
21
  export type DomEventHandlerObject = HandlerEntity<"feature", MMapFeature> | HandlerEntity<"marker", MMapMarker> | HandlerEntity<"hotspot", MMapHotspot> | undefined;
20
22
  interface TileLayerState {
@@ -105,7 +107,7 @@ type MMapListenerProps = DomEventsProps | NullablePartial<MapEvents> | NullableP
105
107
  *
106
108
  * map.addChild(mapListener);
107
109
  * ```
108
- * @see [More about events](https://mappable.world/docs/jsapi/dg/concepts/events.html)
110
+ * @see [More about events](https://mappable.world/docs/js-api/dg/concepts/events.html)
109
111
  */
110
112
  declare class MMapListener extends MMapEntity<MMapListenerProps> {
111
113
  private _domHandlers;
@@ -98,9 +98,9 @@ declare class MMapMarker extends MMapGroupEntity<MMapMarkerProps, DefaultProps>
98
98
  onDragMove?: MMapMarkerEventHandler | undefined;
99
99
  blockEvents?: boolean | undefined;
100
100
  blockBehaviors?: boolean | undefined;
101
- onDoubleClick?: ((event: MouseEvent) => void) | undefined;
102
- onClick?: ((event: MouseEvent) => void) | undefined;
103
- onFastClick?: ((event: MouseEvent) => void) | undefined;
101
+ onDoubleClick?: ((event: MouseEvent, mapEvent: import("../MMapFeature/types").MapEvent) => void) | undefined;
102
+ onClick?: ((event: MouseEvent, mapEvent: import("../MMapFeature/types").MapEvent) => void) | undefined;
103
+ onFastClick?: ((event: MouseEvent, mapEvent: import("../MMapFeature/types").MapEvent) => void) | undefined;
104
104
  markerElement?: HTMLElement | undefined;
105
105
  children?: import("react").ReactNode;
106
106
  ref?: import("react").Ref<import("../Entities").GenericEntity<{
@@ -144,10 +144,10 @@ declare class MMapMarker extends MMapGroupEntity<MMapMarkerProps, DefaultProps>
144
144
  }>>;
145
145
  readonly element: HTMLElement;
146
146
  private _destroyDomCtx?;
147
- constructor(props: MMapMarkerProps, element?: HTMLElement);
148
- private __feature;
147
+ private __feature?;
149
148
  get properties(): Record<string, unknown> | undefined;
150
149
  get coordinates(): LngLat;
150
+ constructor(props: MMapMarkerProps, element?: HTMLElement);
151
151
  _onAttach(): void;
152
152
  _onDetach(): void;
153
153
  protected _onUpdate({ coordinates, zIndex, ...props }: Partial<MMapMarkerProps>): void;
@@ -1,9 +1,18 @@
1
1
  import { MMapContainer, MMapContainerProps, MMapContainerPropsImpl } from "../MMapContainer";
2
- /** @deprecated Use MMapContainerPropsImpl instead */
2
+ /**
3
+ * @deprecated Use {@link MMapContainerPropsImpl} instead
4
+ * @private
5
+ */
3
6
  type MMapReactContainerPropsImpl<TContext> = MMapContainerPropsImpl<TContext>;
4
- /** @deprecated Use MMapContainerProps instead */
7
+ /**
8
+ * @deprecated Use {@link MMapContainerProps} instead
9
+ * @private
10
+ */
5
11
  type MMapReactContainerProps<TContext> = MMapContainerProps<TContext>;
6
- /** @deprecated Use MMapContainer instead */
12
+ /**
13
+ * @deprecated Use {@link MMapContainer} instead
14
+ * @private
15
+ */
7
16
  declare class MMapReactContainer extends MMapContainer {
8
17
  }
9
18
  export { MMapReactContainer, MMapReactContainerPropsImpl, MMapReactContainerProps };
@@ -1,5 +1,11 @@
1
1
  import { MMapComplexEntity } from "../MMapEnities";
2
+ /**
3
+ * Types of measurement units that scale control can display.
4
+ */
2
5
  export type UnitType = "imperial" | "metric" | "nautical";
6
+ /**
7
+ * Properties for [[MMapScaleControl]]
8
+ */
3
9
  type MMapScaleControlProps = {
4
10
  /** Maximum width of scale line in pixels */
5
11
  maxWidth?: number;
@@ -11,6 +17,22 @@ declare const defaultProps: Readonly<{
11
17
  unit: "metric";
12
18
  }>;
13
19
  type DefaultProps = typeof defaultProps;
20
+ /**
21
+ * A control that shows the map scale in different units of measurement.
22
+ * @example Add scale control to the lower left part of the map:
23
+ * ```js
24
+ * const scaleControl = new MMapScaleControl({});
25
+ * const controls = new MMapControls({position: 'bottom left'}, [scaleControl]);
26
+ * map.addChild(controls)
27
+ * ```
28
+ * Alternatively, you can show the integrated scale control on the map by `showScaleInCopyrights` props:
29
+ * ```js
30
+ * const map = new MMap(document.getElementById('map-root'), {
31
+ * showScaleInCopyrights: true,
32
+ * location: {center: [37.622504, 55.753215], zoom: 10}
33
+ * });
34
+ * ```
35
+ */
14
36
  declare class MMapScaleControl extends MMapComplexEntity<MMapScaleControlProps, DefaultProps> {
15
37
  static defaultProps: Readonly<{
16
38
  maxWidth: 74;
@@ -3,7 +3,7 @@ import { MMapEntity } from "../MMapEnities";
3
3
  /**
4
4
  * MMapTileDataSource props
5
5
  */
6
- type MMapTileDataSourceProps = {
6
+ interface MMapTileDataSourceProps {
7
7
  /** Data source id */
8
8
  id: string;
9
9
  /** Min and max zoom for tiles */
@@ -18,7 +18,7 @@ type MMapTileDataSourceProps = {
18
18
  raster?: RasterTileDataSourceDescription;
19
19
  /** Data source copyrights */
20
20
  copyrights?: string[];
21
- };
21
+ }
22
22
  /**
23
23
  * Create map tile data source.
24
24
  *
@@ -50,7 +50,6 @@ type MMapTileDataSourceProps = {
50
50
  */
51
51
  declare class MMapTileDataSource extends MMapEntity<MMapTileDataSourceProps> {
52
52
  private _id;
53
- private _unwatchVectorContext?;
54
53
  protected _onAttach(): void;
55
54
  protected _onDetach(): void;
56
55
  protected _onUpdate(props: Partial<MMapTileDataSourceProps>): void;
@@ -1,6 +1,12 @@
1
1
  import { Context } from "./Entities";
2
2
  /**
3
- * Sets map theme
3
+ * Map theme. Affects the colors of the map controls and background.
4
+ * ```typescript
5
+ * const map = new mappable.MMap({
6
+ * location: {center: [55.751574, 37.573856], zoom: 9},
7
+ * theme: 'dark'
8
+ * });
9
+ * ```
4
10
  */
5
11
  export type MMapTheme = "light" | "dark";
6
12
  export type MMapThemeContext = {
@@ -0,0 +1,9 @@
1
+ import { Context } from "./Entities";
2
+ export type MMapType = string;
3
+ export type MMapTypeContext = {
4
+ type?: MMapType;
5
+ };
6
+ /**
7
+ * Selects one of predefined map style modes optimized for particular use case.
8
+ */
9
+ export declare const TypeContext: Context<MMapTypeContext>;
@@ -1,11 +1,36 @@
1
+ /**
2
+ * All possible apikeys for http-services.
3
+ */
1
4
  interface Apikeys {
2
5
  suggest?: string;
3
6
  router?: string;
4
7
  search?: string;
5
8
  }
9
+ /**
10
+ * Configuration object for whole API.
11
+ * For example, it can be used to set experiments or apikeys.
12
+ * ```js
13
+ * mappable.getDefaultConfig().setApikeys({search: "YOUR_SEARCH_API_KEY"})`.
14
+ * ```
15
+ */
6
16
  export declare class Config {
7
17
  readonly description: string;
18
+ /**
19
+ * Set experiments for map.
20
+ */
8
21
  setExperiments(experiments: Record<string, boolean>): void;
22
+ /**
23
+ * Set apikeys for http-services.
24
+ * ```js
25
+ * mappable.getDefaultConfig().setApikeys({search: "YOUR_SEARCH_API_KEY"})`.
26
+ * ```
27
+ */
9
28
  setApikeys(apikeys: Apikeys): void;
10
29
  }
30
+ /**
31
+ * Returns default config object.
32
+ * ```js
33
+ * mappable.getDefaultConfig().setApikeys({suggest: "YOUR_SUGGEST_API_KEY"})`.
34
+ * ```
35
+ */
11
36
  export declare function getDefaultConfig(): Config;
@@ -5,6 +5,8 @@ import { Config } from "./config";
5
5
  export type FetchConfigOptions = {
6
6
  /** Language */
7
7
  lang: string;
8
+ /** Data provider */
9
+ dataProvider?: string;
8
10
  /** Signal to abort request */
9
11
  signal?: AbortSignal;
10
12
  };
@@ -13,6 +15,6 @@ export type FetchConfigOptions = {
13
15
  *
14
16
  * @param {FetchConfigOptions} options Request options
15
17
  * @param {Config} config Current config
16
- * @returns {Promise<Config>} config for map construction
18
+ * @returns {Promise<Config>} Config for map construction
17
19
  */
18
20
  export declare function fetchConfig(options: FetchConfigOptions, config?: Config | undefined): Promise<Config>;
@@ -1,6 +1,8 @@
1
- import * as projections_ from "./utils/projections";
1
+ import * as projections_ from "./projections";
2
2
  export { MMap, MMapProps, MMapCenterLocation, MMapZoomLocation, MMapBoundsLocation, MMapCenterZoomLocation, MMapLocationRequest, MMapCameraRequest } from "./MMap";
3
3
  export { MMapThemeContext, ThemeContext, MMapTheme } from "./ThemeContext";
4
+ export { MMapTypeContext, TypeContext, MMapType } from "./TypeContext";
5
+ export { MMapContextProvider, MMapContextProviderProps } from "./MMapContextProvider";
4
6
  export { MMapCopyrightsPosition } from "./MMapCopyrights";
5
7
  export { MMapEntity, MMapComplexEntity, MMapGroupEntity, MMapContext } from "./MMapEnities";
6
8
  export { MMapDefaultFeaturesLayer, MMapDefaultFeaturesLayerProps } from "./MMapDefaultFeaturesLayer";
@@ -1,11 +1,9 @@
1
- import type { Projection, LngLat, WorldCoordinates } from "../../../common/types";
1
+ import type { Projection, LngLat, WorldCoordinates } from "../../common/types";
2
2
  /**
3
- * @class Mercator projection onto a sphere.
4
- * Used by many mapping services, in particular OpenStreetMap.
5
- * @name projection.webMercator
6
- * @augments Projection
7
- * @static
8
- * @example
3
+ * @private
4
+ * Mercator projection onto a sphere.
5
+ * Used by many mapping services, in particular OpenStreetMap
6
+ *
9
7
  * ```js
10
8
  * // Create a map in the web Mercator projection
11
9
  * const map = new mappable.MMap(document.getElementById('MMapsID'), {
@@ -0,0 +1,50 @@
1
+ import { optionsKeyVuefy, MMapComplexEntity, MMapLayerProps } from "../../imperative";
2
+ import type { CustomVuefyOptions } from "../vuefy";
3
+ type MMapCarparksLayerType = "ground" | "icons";
4
+ type MMapCarparksLayerProps = {
5
+ /** Should show layer. Default is true */
6
+ visible?: boolean;
7
+ /** Name for source */
8
+ source?: string;
9
+ /** Layers parameters */
10
+ layers?: Partial<Record<MMapCarparksLayerType, Partial<MMapLayerProps>>>;
11
+ };
12
+ declare const defaultProps: {
13
+ visible: boolean;
14
+ source: string;
15
+ updateTime: number;
16
+ layers: {
17
+ ground: {
18
+ zIndex: number;
19
+ };
20
+ icons: {
21
+ zIndex: number;
22
+ };
23
+ };
24
+ };
25
+ type DefaultProps = typeof defaultProps;
26
+ declare class MMapCarparksLayer extends MMapComplexEntity<MMapCarparksLayerProps, DefaultProps> {
27
+ static defaultProps: {
28
+ visible: boolean;
29
+ source: string;
30
+ updateTime: number;
31
+ layers: {
32
+ ground: {
33
+ zIndex: number;
34
+ };
35
+ icons: {
36
+ zIndex: number;
37
+ };
38
+ };
39
+ };
40
+ static [optionsKeyVuefy]: CustomVuefyOptions<MMapCarparksLayer>;
41
+ private _coverageSubscription?;
42
+ private _unwatchThemeContext?;
43
+ private _dataSource?;
44
+ private _layers;
45
+ protected _onAttach(): void;
46
+ private _getTileDataSourceProps;
47
+ protected _onUpdate(): void;
48
+ protected _onDetach(): void;
49
+ }
50
+ export { MMapCarparksLayer, MMapCarparksLayerProps };
@@ -0,0 +1,52 @@
1
+ import type { CustomVuefyOptions } from "../vuefy";
2
+ import { optionsKeyVuefy } from "../../imperative/wrappers";
3
+ import { MMapComplexEntity } from "../../imperative/MMapEnities";
4
+ import { MMapLayerProps } from "../../imperative/MMapLayer";
5
+ type MMapPanoramaLayerType = "ground" | "icons";
6
+ type MMapPanoramaLayerProps = {
7
+ /** Should show layer. Default is true */
8
+ visible?: boolean;
9
+ /** Name for source */
10
+ source?: string;
11
+ /** Layers parameters */
12
+ layers?: Partial<Record<MMapPanoramaLayerType, Partial<MMapLayerProps>>>;
13
+ };
14
+ declare const defaultProps: {
15
+ visible: boolean;
16
+ source: string;
17
+ layers: {
18
+ ground: {
19
+ zIndex: number;
20
+ };
21
+ icons: {
22
+ zIndex: number;
23
+ };
24
+ };
25
+ updateTime: number;
26
+ };
27
+ type DefaultProps = typeof defaultProps;
28
+ declare class MMapPanoramaLayer extends MMapComplexEntity<MMapPanoramaLayerProps, DefaultProps> {
29
+ static defaultProps: {
30
+ visible: boolean;
31
+ source: string;
32
+ layers: {
33
+ ground: {
34
+ zIndex: number;
35
+ };
36
+ icons: {
37
+ zIndex: number;
38
+ };
39
+ };
40
+ updateTime: number;
41
+ };
42
+ private _dataSource?;
43
+ private _layers;
44
+ private _coverageSubscription?;
45
+ private _unwatchThemeContext?;
46
+ static [optionsKeyVuefy]: CustomVuefyOptions<MMapPanoramaLayer>;
47
+ protected _onAttach(): void;
48
+ private _getTileDataSourceProps;
49
+ protected _onDetach(): void;
50
+ protected _onUpdate(): void;
51
+ }
52
+ export { MMapPanoramaLayer, MMapPanoramaLayerProps };
@@ -0,0 +1,58 @@
1
+ import { MMapComplexEntity } from "../../imperative/MMapEnities";
2
+ import { MMapLayerProps } from "../../imperative/MMapLayer";
3
+ import type { CustomVuefyOptions } from "../vuefy";
4
+ import { optionsKeyVuefy } from "../../imperative/wrappers";
5
+ type MMapTrafficEventsLayerType = "ground" | "icons" | "labels";
6
+ type MMapTrafficEventsLayerProps = {
7
+ /** Should show layer. Default is true */
8
+ visible?: boolean;
9
+ /** Name for source */
10
+ source?: string;
11
+ /** Layers parameters */
12
+ layers?: Partial<Record<MMapTrafficEventsLayerType, Partial<MMapLayerProps>>>;
13
+ };
14
+ declare const defaultProps: {
15
+ visible: boolean;
16
+ source: string;
17
+ updateTime: number;
18
+ layers: {
19
+ ground: {
20
+ zIndex: number;
21
+ };
22
+ icons: {
23
+ zIndex: number;
24
+ };
25
+ labels: {
26
+ zIndex: number;
27
+ };
28
+ };
29
+ };
30
+ type DefaultProps = typeof defaultProps;
31
+ declare class MMapTrafficEventsLayer extends MMapComplexEntity<MMapTrafficEventsLayerProps, DefaultProps> {
32
+ static defaultProps: {
33
+ visible: boolean;
34
+ source: string;
35
+ updateTime: number;
36
+ layers: {
37
+ ground: {
38
+ zIndex: number;
39
+ };
40
+ icons: {
41
+ zIndex: number;
42
+ };
43
+ labels: {
44
+ zIndex: number;
45
+ };
46
+ };
47
+ };
48
+ private _dataSource?;
49
+ private _layers;
50
+ private _coverageSubscription?;
51
+ private _unwatchThemeContext?;
52
+ static [optionsKeyVuefy]: CustomVuefyOptions<MMapTrafficEventsLayer>;
53
+ protected _onAttach(): void;
54
+ private _getTileDataSourceProps;
55
+ protected _onUpdate(): void;
56
+ protected _onDetach(): void;
57
+ }
58
+ export { MMapTrafficEventsLayer, MMapTrafficEventsLayerProps };
@@ -0,0 +1,36 @@
1
+ import { MMapComplexEntity } from "../../imperative/MMapEnities";
2
+ import type { CustomVuefyOptions } from "../vuefy";
3
+ import { optionsKeyVuefy } from "../../imperative/wrappers";
4
+ type MMapTrafficLayerProps = {
5
+ /** Should show layer. Default is true */
6
+ visible?: boolean;
7
+ /** Layer z-index */
8
+ zIndex?: number;
9
+ /** Name for source */
10
+ source?: string;
11
+ };
12
+ declare const defaultProps: Readonly<{
13
+ visible: true;
14
+ source: "mappable-traffic-layer";
15
+ zIndex: 1000;
16
+ updateTime: number;
17
+ }>;
18
+ type DefaultProps = typeof defaultProps;
19
+ declare class MMapTrafficLayer extends MMapComplexEntity<MMapTrafficLayerProps, DefaultProps> {
20
+ static defaultProps: Readonly<{
21
+ visible: true;
22
+ source: "mappable-traffic-layer";
23
+ zIndex: 1000;
24
+ updateTime: number;
25
+ }>;
26
+ private _dataSource?;
27
+ private _layer?;
28
+ private _coverageSubscription?;
29
+ private _unwatchThemeContext?;
30
+ static [optionsKeyVuefy]: CustomVuefyOptions<MMapTrafficLayer>;
31
+ protected _onAttach(): void;
32
+ private _getTileDataSourceProps;
33
+ protected _onUpdate(props: Partial<MMapTrafficLayerProps>): void;
34
+ protected _onDetach(): void;
35
+ }
36
+ export { MMapTrafficLayer, MMapTrafficLayerProps };
@@ -0,0 +1,4 @@
1
+ export * from "./MMapTrafficLayer";
2
+ export * from "./MMapTrafficEventsLayer";
3
+ export * from "./MMapCarparksLayer";
4
+ export * from "./MMapPanoramaLayer";
@@ -0,0 +1 @@
1
+ export declare function transformUrlTemplate(urlTemplate: string, locale: string, version?: string): string;
@@ -0,0 +1,10 @@
1
+ import { MMapComplexEntity } from "../../imperative/MMapEnities";
2
+ type EventBlockerLayerProps = {
3
+ zIndex: number;
4
+ };
5
+ declare class EventBlockerLayer extends MMapComplexEntity<EventBlockerLayerProps> {
6
+ private _layer;
7
+ constructor(props: EventBlockerLayerProps);
8
+ protected _onUpdate(props: Partial<EventBlockerLayerProps>): void;
9
+ }
10
+ export { EventBlockerLayer, EventBlockerLayerProps };
@@ -0,0 +1,66 @@
1
+ import { MMapComplexEntity, MMapEntity } from "../../imperative";
2
+ import { optionsKeyVuefy, overrideKeyReactify, overrideKeyVuefy } from "../../imperative/wrappers";
3
+ import { RenderPointCommonArgs, MMapRulerCommon, MMapRulerCommonProps } from "./MMapRulerCommon";
4
+ export type MMapRulerProps = Omit<MMapRulerCommonProps, "point"> & {
5
+ point: (params: RenderPointArgs) => MMapEntity<RenderPointArgs>;
6
+ };
7
+ export type RenderPointArgs = RenderPointCommonArgs;
8
+ declare const defaultProps: Readonly<{}>;
9
+ export declare class MMapRuler extends MMapComplexEntity<MMapRulerProps, typeof defaultProps> {
10
+ static defaultProps: Readonly<{}>;
11
+ static [optionsKeyVuefy]: import("../vuefy").CustomVuefyOptions<MMapRulerCommon, {
12
+ type: import("./MMapRulerCommon").RulerType;
13
+ source?: string | undefined;
14
+ geometry: import("./MMapRulerCommon").RulerGeometry;
15
+ zIndex?: number | undefined;
16
+ onUpdate?: import("./MMapRulerCommon").UpdateCommonFn | undefined;
17
+ points: import("../../common/types/lng-lat").LngLat[];
18
+ editable?: boolean | undefined;
19
+ onUpdateStart?: import("./MMapRulerCommon").UpdateStartFn | undefined;
20
+ onUpdateEnd?: import("./MMapRulerCommon").UpdateEndFn | undefined;
21
+ }>;
22
+ static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<MMapRulerCommon, import("react").ForwardRefExoticComponent<{
23
+ type: import("./MMapRulerCommon").RulerType;
24
+ source?: string | undefined;
25
+ geometry: import("./MMapRulerCommon").RulerGeometry;
26
+ zIndex?: number | undefined;
27
+ onUpdate?: import("./MMapRulerCommon").UpdateCommonFn | undefined;
28
+ points: import("../../common/types/lng-lat").LngLat[];
29
+ editable?: boolean | undefined;
30
+ onUpdateStart?: import("./MMapRulerCommon").UpdateStartFn | undefined;
31
+ onUpdateEnd?: import("./MMapRulerCommon").UpdateEndFn | undefined;
32
+ point: (params: RenderPointCommonArgs) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
33
+ previewPoint: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
34
+ ref?: import("react").Ref<MMapEntity<{
35
+ type: import("./MMapRulerCommon").RulerType;
36
+ source?: string | undefined;
37
+ geometry: import("./MMapRulerCommon").RulerGeometry;
38
+ zIndex?: number | undefined;
39
+ onUpdate?: import("./MMapRulerCommon").UpdateCommonFn | undefined;
40
+ points: import("../../common/types/lng-lat").LngLat[];
41
+ editable?: boolean | undefined;
42
+ onUpdateStart?: import("./MMapRulerCommon").UpdateStartFn | undefined;
43
+ onUpdateEnd?: import("./MMapRulerCommon").UpdateEndFn | undefined;
44
+ point: (params: RenderPointCommonArgs) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
45
+ previewPoint: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
46
+ }, {}>> | undefined;
47
+ key?: import("react").Key | null | undefined;
48
+ }>>;
49
+ static [overrideKeyVuefy]: import("../vuefy").CustomVuefyFn<MMapRulerCommon, {
50
+ type: import("./MMapRulerCommon").RulerType;
51
+ source?: string | undefined;
52
+ geometry: import("./MMapRulerCommon").RulerGeometry;
53
+ zIndex?: number | undefined;
54
+ onUpdate?: import("./MMapRulerCommon").UpdateCommonFn | undefined;
55
+ points: import("../../common/types/lng-lat").LngLat[];
56
+ editable?: boolean | undefined;
57
+ onUpdateStart?: import("./MMapRulerCommon").UpdateStartFn | undefined;
58
+ onUpdateEnd?: import("./MMapRulerCommon").UpdateEndFn | undefined;
59
+ }>;
60
+ private _rulerCommon;
61
+ private _previewPointWrapper;
62
+ constructor(props: MMapRulerProps);
63
+ protected _onUpdate(): void;
64
+ private _renderPoints;
65
+ }
66
+ export {};