@mappable-world/mappable-types 1.0.15214209 → 1.0.15379247
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,10 +1,11 @@
|
|
|
1
1
|
import type { CustomVuefyOptions } from "..";
|
|
2
|
-
import { MMap, MMapContainer, MMapControlButton, MMapControls, MMapDefaultFeaturesLayer, MMapDefaultSchemeLayer, MMapFeature, MMapFeatureDataSource, MMapLayer, MMapMarker, MMapTileDataSource, MMapContextProvider } from "../../../imperative";
|
|
2
|
+
import { MMap, MMapContainer, MMapControlButton, MMapControl, MMapControls, MMapDefaultFeaturesLayer, MMapDefaultSchemeLayer, MMapFeature, MMapFeatureDataSource, MMapLayer, MMapMarker, MMapTileDataSource, MMapContextProvider } from "../../../imperative";
|
|
3
3
|
import { type EntityConstructor, type GenericEntity } from "../../../imperative/Entities";
|
|
4
4
|
import type { ComputedMMapMarkerContainerProps } from "../overrides/MMapMarker";
|
|
5
5
|
export declare const MMapVuefyOptions: CustomVuefyOptions<MMap>;
|
|
6
6
|
export declare const MMapControlButtonVuefyOptions: CustomVuefyOptions<MMapControlButton>;
|
|
7
7
|
export declare const MMapControlsVuefyOptions: CustomVuefyOptions<MMapControls>;
|
|
8
|
+
export declare const MMapControlVuefyOptions: CustomVuefyOptions<MMapControl>;
|
|
8
9
|
export declare const MMapDefaultFeaturesLayerVuefyOptions: CustomVuefyOptions<MMapDefaultFeaturesLayer>;
|
|
9
10
|
export declare const MMapDefaultSchemeLayerVuefyOptions: CustomVuefyOptions<MMapDefaultSchemeLayer>;
|
|
10
11
|
export declare const MMapFeatureVuefyOptions: CustomVuefyOptions<MMapFeature>;
|
package/package.json
CHANGED
|
@@ -4,8 +4,10 @@ import type { CustomVuefyOptions } from "../../../modules/vuefy";
|
|
|
4
4
|
* MMapGeolocationControl props
|
|
5
5
|
*/
|
|
6
6
|
type MMapGeolocationControlProps = {
|
|
7
|
-
/** Geolocation request callback */
|
|
7
|
+
/** Geolocation request success callback */
|
|
8
8
|
onGeolocatePosition?: (position: LngLat) => void;
|
|
9
|
+
/** Geolocation request error callback */
|
|
10
|
+
onGeolocateError?: () => void;
|
|
9
11
|
/** Data source id for geolocation placemark */
|
|
10
12
|
source?: string;
|
|
11
13
|
/** Easing function for map location animation */
|
|
@@ -14,9 +16,16 @@ type MMapGeolocationControlProps = {
|
|
|
14
16
|
duration?: number;
|
|
15
17
|
/** Map zoom after geolocate position */
|
|
16
18
|
zoom?: number;
|
|
19
|
+
/** Options for {@link mappable.geolocation.getPosition} */
|
|
20
|
+
positionOptions?: PositionOptions;
|
|
17
21
|
};
|
|
18
22
|
declare const defaultProps: Readonly<{
|
|
19
23
|
duration: 500;
|
|
24
|
+
positionOptions: {
|
|
25
|
+
enableHighAccuracy: boolean;
|
|
26
|
+
timeout: number;
|
|
27
|
+
maximumAge: number;
|
|
28
|
+
};
|
|
20
29
|
}>;
|
|
21
30
|
type DefaultProps = typeof defaultProps;
|
|
22
31
|
/**
|
|
@@ -33,6 +42,11 @@ type DefaultProps = typeof defaultProps;
|
|
|
33
42
|
declare class MMapGeolocationControl extends mappable.MMapGroupEntity<MMapGeolocationControlProps, DefaultProps> {
|
|
34
43
|
static defaultProps: Readonly<{
|
|
35
44
|
duration: 500;
|
|
45
|
+
positionOptions: {
|
|
46
|
+
enableHighAccuracy: boolean;
|
|
47
|
+
timeout: number;
|
|
48
|
+
maximumAge: number;
|
|
49
|
+
};
|
|
36
50
|
}>;
|
|
37
51
|
static [mappable.optionsKeyVuefy]: CustomVuefyOptions<MMapGeolocationControl>;
|
|
38
52
|
private _control;
|