@mappedin/react-native-sdk 5.6.1 → 5.7.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.
- package/dist/index.d.ts +174 -57
- package/dist/index.js +200 -200
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -582,7 +582,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
582
582
|
import { TBlueDotPositionUpdate, TBlueDotStateChange } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
583
583
|
import { TOOLTIP_ANCHOR } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
584
584
|
import type { Euler, Object3D, Vector3 } from 'three';
|
|
585
|
-
import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
585
|
+
import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, MAP_RENDER_MODE, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
586
586
|
export type { TEnableBlueDotOptions, TFloatingLabelAppearance };
|
|
587
587
|
/**
|
|
588
588
|
An extension of the GeolocationPosition type.
|
|
@@ -772,6 +772,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
772
772
|
rank?: COLLISION_RANKING_TIERS | number;
|
|
773
773
|
anchor?: MARKER_ANCHOR;
|
|
774
774
|
};
|
|
775
|
+
export type TAnimationOptions = {
|
|
776
|
+
/**
|
|
777
|
+
* Animation duration in milliseconds
|
|
778
|
+
*/
|
|
779
|
+
duration?: number;
|
|
780
|
+
/**
|
|
781
|
+
* Mode for easing in and out of the animation.
|
|
782
|
+
*/
|
|
783
|
+
easing?: CAMERA_EASING_MODE;
|
|
784
|
+
};
|
|
775
785
|
export type TCreateTooltipInternalOptions = {
|
|
776
786
|
nodeOrCoordinate: MappedinNode | MappedinCoordinate;
|
|
777
787
|
html?: string;
|
|
@@ -1028,7 +1038,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1028
1038
|
text: string;
|
|
1029
1039
|
scale?: number;
|
|
1030
1040
|
/**
|
|
1031
|
-
* Ranking tier to determine how likely a {@link
|
|
1041
|
+
* Ranking tier to determine how likely a {@link FloatingLabels | Floating Label} will appear
|
|
1032
1042
|
*/
|
|
1033
1043
|
rank?: COLLISION_RANKING_TIERS | number;
|
|
1034
1044
|
/**
|
|
@@ -1059,7 +1069,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1059
1069
|
*/
|
|
1060
1070
|
locations?: MappedinLocation[];
|
|
1061
1071
|
/**
|
|
1062
|
-
* Custom
|
|
1072
|
+
* Custom translation map for location states
|
|
1063
1073
|
*/
|
|
1064
1074
|
translationMap?: {
|
|
1065
1075
|
[key in string]: string;
|
|
@@ -1560,7 +1570,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLa
|
|
|
1560
1570
|
*/
|
|
1561
1571
|
setAppearance(polygon: MappedinPolygon, appearance: TFlatLabelAppearance): T;
|
|
1562
1572
|
/**
|
|
1563
|
-
* Sets the color for
|
|
1573
|
+
* Sets the hover text color for all Flat Labels.
|
|
1574
|
+
* Expects color in hexadecimal string e.g. `#2e2e2e`
|
|
1575
|
+
*
|
|
1576
|
+
* To set hover color for all polygons, see {@link MapView.setHoverColor}.
|
|
1564
1577
|
*/
|
|
1565
1578
|
setHoverColorForAll(color: string): T;
|
|
1566
1579
|
}
|
|
@@ -1646,8 +1659,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
|
|
|
1646
1659
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
1647
1660
|
import { MappedinNode, MappedinPolygon, MappedinCoordinate } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
1648
1661
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub.typed';
|
|
1649
|
-
import { CAMERA_EVENT_PAYLOAD } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
1650
|
-
import { E_CAMERA_EVENT, E_CAMERA_DIRECTION,
|
|
1662
|
+
import { CAMERA_EVENT_PAYLOAD, TAnimationOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
1663
|
+
import { E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
1651
1664
|
export type TSafeAreaInsets = {
|
|
1652
1665
|
top: number;
|
|
1653
1666
|
left: number;
|
|
@@ -1682,13 +1695,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
|
|
|
1682
1695
|
rotation?: number;
|
|
1683
1696
|
position?: MappedinCoordinate | MappedinNode;
|
|
1684
1697
|
};
|
|
1685
|
-
export type TCameraAnimationOptions =
|
|
1686
|
-
/**
|
|
1687
|
-
* Animation duration in milliseconds
|
|
1688
|
-
*/
|
|
1689
|
-
duration?: number;
|
|
1690
|
-
easing?: CAMERA_EASING_MODE;
|
|
1691
|
-
};
|
|
1698
|
+
export type TCameraAnimationOptions = TAnimationOptions;
|
|
1692
1699
|
/**
|
|
1693
1700
|
* The Camera object specifies a view of the map and allows manipulation of that view.
|
|
1694
1701
|
*/
|
|
@@ -2624,7 +2631,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2624
2631
|
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
2625
2632
|
locationId: string;
|
|
2626
2633
|
polygonHighlightColor?: string | undefined;
|
|
2627
|
-
focusOptions?: (import("../react-native-sdk/src").TFocusOnCameraOptions & import("
|
|
2634
|
+
focusOptions?: (import("../react-native-sdk/src").TFocusOnCameraOptions & import("../../core/packages/renderer").TAnimationOptions) | undefined;
|
|
2628
2635
|
};
|
|
2629
2636
|
};
|
|
2630
2637
|
SET_DEBUG_FLAGS: {
|
|
@@ -2776,7 +2783,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2776
2783
|
config: Omit<import("../react-native-sdk/src").TCameraTransform, "position"> & {
|
|
2777
2784
|
position?: import("./types").TSerializedCoordinate | import("./types").TSerializedNode | undefined;
|
|
2778
2785
|
};
|
|
2779
|
-
options?: import("
|
|
2786
|
+
options?: import("../../core/packages/renderer").TAnimationOptions | undefined;
|
|
2780
2787
|
};
|
|
2781
2788
|
};
|
|
2782
2789
|
CAMERA_TRANSLATE: {
|
|
@@ -2784,7 +2791,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2784
2791
|
data: {
|
|
2785
2792
|
direction: import("../react-native-sdk/src").E_CAMERA_DIRECTION;
|
|
2786
2793
|
distance: number;
|
|
2787
|
-
options?: import("
|
|
2794
|
+
options?: import("../../core/packages/renderer").TAnimationOptions | undefined;
|
|
2788
2795
|
};
|
|
2789
2796
|
};
|
|
2790
2797
|
CAMERA_SET_SAFE_AREA_INSETS: {
|
|
@@ -2808,7 +2815,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2808
2815
|
msgID?: string | undefined;
|
|
2809
2816
|
data: {
|
|
2810
2817
|
targets: import("./types").TFocusOnTargetsSerializable;
|
|
2811
|
-
options?: (import("../react-native-sdk/src").TFocusOnCameraOptions & import("
|
|
2818
|
+
options?: (import("../react-native-sdk/src").TFocusOnCameraOptions & import("../../core/packages/renderer").TAnimationOptions) | undefined;
|
|
2812
2819
|
};
|
|
2813
2820
|
};
|
|
2814
2821
|
SET_POLYGON_COLOR: {
|
|
@@ -3984,7 +3991,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3984
3991
|
hydrateFromMVF(mvfData: MVFData): Promise<undefined>;
|
|
3985
3992
|
/**
|
|
3986
3993
|
*
|
|
3987
|
-
*
|
|
3994
|
+
* @experimental Hydrate the Mappedin instance using a response from either {@link Mappedin.toString}, {@link getVenueBundle} or by downloading the bundle manually
|
|
3988
3995
|
* @param mappedinSerializableData Mappedin data that was serialized or exported as JSON
|
|
3989
3996
|
* @param shouldPopulateBundledImagesAsBlobs Takes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default
|
|
3990
3997
|
*/
|
|
@@ -4975,10 +4982,10 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Offl
|
|
|
4975
4982
|
export const removeAccents: (it: string) => string;
|
|
4976
4983
|
export type { SearchOptions };
|
|
4977
4984
|
/**
|
|
4978
|
-
* A {@link
|
|
4985
|
+
* A {@link OfflineSearch} is an offline search module
|
|
4979
4986
|
*
|
|
4980
4987
|
*
|
|
4981
|
-
* @class
|
|
4988
|
+
* @class OfflineSearch
|
|
4982
4989
|
*/
|
|
4983
4990
|
export type TMappedinOfflineSearchAllOptions = {
|
|
4984
4991
|
/**
|
|
@@ -5642,7 +5649,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5642
5649
|
import type { TMapViewOptions, TJourneyOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5643
5650
|
import { labelThemes } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5644
5651
|
import { MARKER_ANCHOR } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Marker';
|
|
5645
|
-
export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/
|
|
5652
|
+
export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Markers';
|
|
5646
5653
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
5647
5654
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
5648
5655
|
export type { IFlatLabels, FlatLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLabels';
|
|
@@ -5746,13 +5753,14 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5746
5753
|
import { E_SDK_EVENT, STATE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
5747
5754
|
import SmartTooltip from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
5748
5755
|
import Camera from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
5749
|
-
import { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/
|
|
5756
|
+
import { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Markers';
|
|
5750
5757
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub.typed';
|
|
5751
5758
|
import BlueDotLayer from '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot';
|
|
5752
5759
|
import JourneyLayer from '@mappedin/react-native-sdk/core/packages/renderer/layers/Journey';
|
|
5753
5760
|
import { TGetPolygonsAtCoordinateOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
5754
5761
|
import { IFlatLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLabels';
|
|
5755
5762
|
import { IFloatingLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FloatingLabels';
|
|
5763
|
+
import { MarkersLayer } from '@mappedin/react-native-sdk/core/packages/renderer/layers/Markers';
|
|
5756
5764
|
export enum INTERNAL_EVENT {
|
|
5757
5765
|
ON_FIRST_MAP_LOADED = 0,
|
|
5758
5766
|
TEXTURE_LOADED = 1,
|
|
@@ -5824,6 +5832,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5824
5832
|
Camera: Camera;
|
|
5825
5833
|
FlatLabels: IFlatLabels<void>;
|
|
5826
5834
|
FloatingLabels: IFloatingLabels<void>;
|
|
5835
|
+
Markers: MarkersLayer;
|
|
5827
5836
|
options: TMapViewOptions;
|
|
5828
5837
|
constructor(container: HTMLElement, venue: Mappedin, options?: TMapViewOptions & {
|
|
5829
5838
|
onFirstMapLoaded: () => void;
|
|
@@ -5924,16 +5933,18 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5924
5933
|
*/
|
|
5925
5934
|
removeInteractivePolygon(polygonOrPolygonId: MappedinPolygon | string): void;
|
|
5926
5935
|
/**
|
|
5927
|
-
* Attach any HTML to a {@link MappedinNode}, and have the marker interact and collide with smart labels and tooltips
|
|
5936
|
+
* Attach any HTML to a {@link MappedinNode} or {@link MappedinCoordinate}, and have the marker interact and collide with smart labels and tooltips
|
|
5937
|
+
* @deprecated use `mapView.Markers.add` instead.
|
|
5928
5938
|
*/
|
|
5929
5939
|
createMarker(nodeOrCoordinate: MappedinNode | MappedinCoordinate, contentHtml: string, options?: TCreateMarkerOptions): Marker;
|
|
5930
5940
|
/**
|
|
5931
5941
|
* Remove Marker
|
|
5942
|
+
* @deprecated use `mapView.Markers.remove` instead.
|
|
5932
5943
|
*/
|
|
5933
5944
|
removeMarker(markerOrMarkerId: Marker | Marker['id']): void;
|
|
5934
5945
|
/**
|
|
5935
5946
|
* Removes all Markers (from all Maps, not just the current one).
|
|
5936
|
-
*
|
|
5947
|
+
* @deprecated use `mapView.Markers.removeAll` instead.
|
|
5937
5948
|
*/
|
|
5938
5949
|
removeAllMarkers(): void;
|
|
5939
5950
|
/**
|
|
@@ -5991,9 +6002,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5991
6002
|
*/
|
|
5992
6003
|
nodeOrCoordinate: MappedinNode | MappedinCoordinate, contentHtml: string, selector: string, options?: TCreateTooltipCommonOptions): SmartTooltip;
|
|
5993
6004
|
/**
|
|
5994
|
-
* Removes a
|
|
6005
|
+
* Removes a Tooltip you have added previously.
|
|
5995
6006
|
*
|
|
5996
|
-
* @param tooltipOrTooltipId A Tooltip that has previously been returned from {@link MapView.createTooltip}.
|
|
6007
|
+
* @param tooltipOrTooltipId A Tooltip or Tooltip id that has previously been returned from {@link MapView.createTooltip}.
|
|
5997
6008
|
*/
|
|
5998
6009
|
removeTooltip(tooltipOrTooltipId: SmartTooltip | SmartTooltip['id']): void;
|
|
5999
6010
|
/**
|
|
@@ -7030,6 +7041,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
7030
7041
|
};
|
|
7031
7042
|
flipIfNeeded(): void;
|
|
7032
7043
|
constructor(options: any);
|
|
7044
|
+
setPosition(position: MappedinNode | MappedinCoordinate): void;
|
|
7033
7045
|
setPriority(rank: any): void;
|
|
7034
7046
|
setAction(action: any): void;
|
|
7035
7047
|
resetPriority(): void;
|
|
@@ -7813,9 +7825,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
7813
7825
|
export default InternalMarker;
|
|
7814
7826
|
}
|
|
7815
7827
|
|
|
7816
|
-
declare module '@mappedin/react-native-sdk/core/packages/renderer/
|
|
7828
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Markers' {
|
|
7817
7829
|
import { MappedinCoordinate, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
7818
|
-
import { TCreateMarkerOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
7830
|
+
import { TCreateMarkerOptions, TAnimationOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
7819
7831
|
import InternalMarker from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Marker';
|
|
7820
7832
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
7821
7833
|
/**
|
|
@@ -7837,14 +7849,42 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Markers
|
|
|
7837
7849
|
*/
|
|
7838
7850
|
get contentEl(): any;
|
|
7839
7851
|
}
|
|
7840
|
-
class
|
|
7852
|
+
class MarkersController {
|
|
7841
7853
|
#private;
|
|
7842
7854
|
constructor(core: ICore);
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7855
|
+
/**
|
|
7856
|
+
* Create a new Marker, containing some HTML, at the specified position
|
|
7857
|
+
* @param nodeOrCoordinate the position for the Marker
|
|
7858
|
+
* @param contentHtml the content to show in the Marker
|
|
7859
|
+
* @param options options for the display of the Marker
|
|
7860
|
+
* @returns the Marker object that was created.
|
|
7861
|
+
*/
|
|
7862
|
+
add(nodeOrCoordinate: MappedinNode | MappedinCoordinate, contentHtml: string, options?: TCreateMarkerOptions): Marker;
|
|
7863
|
+
updateMap(internalMarker: InternalMarker, from: string, to: string): void;
|
|
7864
|
+
/**
|
|
7865
|
+
* Moves a Marker to a new position instantaneously.
|
|
7866
|
+
* @param markerOrMarkerId the Marker to move
|
|
7867
|
+
* @param target the new position for this Marker
|
|
7868
|
+
*/
|
|
7869
|
+
setPosition(markerOrMarkerId: Marker | Marker['id'], target: MappedinNode | MappedinCoordinate): void;
|
|
7870
|
+
/**
|
|
7871
|
+
* Moves a Marker to a new position over time.
|
|
7872
|
+
* @param markerOrMarkerId the Marker to move
|
|
7873
|
+
* @param target the new position for this Marker
|
|
7874
|
+
* @param options the options for how this movement should be animated
|
|
7875
|
+
*/
|
|
7876
|
+
animate(markerOrMarkerId: Marker | Marker['id'], target: MappedinCoordinate | MappedinNode, options?: TAnimationOptions): Promise<void>;
|
|
7877
|
+
/**
|
|
7878
|
+
* Removes a Marker.
|
|
7879
|
+
* @param markerOrMarkerId the Marker to be removed
|
|
7880
|
+
*/
|
|
7881
|
+
remove(markerOrMarkerId: Marker | Marker['id']): void;
|
|
7882
|
+
/**
|
|
7883
|
+
* Remove all Markers from all maps.
|
|
7884
|
+
*/
|
|
7885
|
+
removeAll(): void;
|
|
7846
7886
|
}
|
|
7847
|
-
export default
|
|
7887
|
+
export default MarkersController;
|
|
7848
7888
|
}
|
|
7849
7889
|
|
|
7850
7890
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager' {
|
|
@@ -7927,6 +7967,47 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/bundle-asset-m
|
|
|
7927
7967
|
}
|
|
7928
7968
|
}
|
|
7929
7969
|
|
|
7970
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Markers' {
|
|
7971
|
+
import { TAnimationOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
7972
|
+
import { MappedinCoordinate, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
7973
|
+
import { TCreateMarkerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
7974
|
+
import MarkersController, { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Markers';
|
|
7975
|
+
export class MarkersLayer {
|
|
7976
|
+
#private;
|
|
7977
|
+
constructor(markersController: MarkersController);
|
|
7978
|
+
/**
|
|
7979
|
+
* Create a new Marker, containing some HTML, at the specified position
|
|
7980
|
+
* @param nodeOrCoordinate the position for the Marker
|
|
7981
|
+
* @param contentHtml the content to show in the Marker
|
|
7982
|
+
* @param options options for the display of the Marker
|
|
7983
|
+
* @returns the Marker object that was created.
|
|
7984
|
+
*/
|
|
7985
|
+
add(nodeOrCoordinate: MappedinNode | MappedinCoordinate, contentHtml: string, options?: TCreateMarkerOptions): Marker;
|
|
7986
|
+
/**
|
|
7987
|
+
* Moves a Marker to a new position instantaneously.
|
|
7988
|
+
* @param markerOrMarkerId the Marker to move
|
|
7989
|
+
* @param target the new position for this Marker
|
|
7990
|
+
*/
|
|
7991
|
+
setPosition(markerOrMarkerId: Marker | Marker['id'], target: MappedinNode | MappedinCoordinate): void;
|
|
7992
|
+
/**
|
|
7993
|
+
* Moves a Marker to a new position over time.
|
|
7994
|
+
* @param markerOrMarkerId the Marker to move
|
|
7995
|
+
* @param target the new position for this Marker
|
|
7996
|
+
* @param options the options for how this movement should be animated
|
|
7997
|
+
*/
|
|
7998
|
+
animate(markerOrMarkerId: Marker | Marker['id'], target: MappedinCoordinate | MappedinNode, options?: TAnimationOptions): Promise<void>;
|
|
7999
|
+
/**
|
|
8000
|
+
* Removes a Marker.
|
|
8001
|
+
* @param markerOrMarkerId the Marker to be removed
|
|
8002
|
+
*/
|
|
8003
|
+
remove(markerOrMarkerId: Marker | Marker['id']): void;
|
|
8004
|
+
/**
|
|
8005
|
+
* Remove all Markers from all maps.
|
|
8006
|
+
*/
|
|
8007
|
+
removeAll(): void;
|
|
8008
|
+
}
|
|
8009
|
+
}
|
|
8010
|
+
|
|
7930
8011
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.Scene' {
|
|
7931
8012
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
7932
8013
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
@@ -7992,6 +8073,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
7992
8073
|
reposition: () => void;
|
|
7993
8074
|
add: (colliderId: string, collider: ICollider) => void;
|
|
7994
8075
|
remove: (colliderId: string) => void;
|
|
8076
|
+
updateMap: (colliderId: string, from: string, to: string) => void;
|
|
7995
8077
|
update: () => void;
|
|
7996
8078
|
resize: (container: any) => void;
|
|
7997
8079
|
destroy: () => void;
|
|
@@ -8071,37 +8153,72 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Outdoor
|
|
|
8071
8153
|
}
|
|
8072
8154
|
|
|
8073
8155
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Outdoor-Context/Outdoor-Context.provider' {
|
|
8156
|
+
/**
|
|
8157
|
+
* @experimental
|
|
8158
|
+
* The universal outdoor context interface
|
|
8159
|
+
*/
|
|
8074
8160
|
export interface IOutdoorContextProvider {
|
|
8075
|
-
|
|
8076
|
-
|
|
8161
|
+
/**
|
|
8162
|
+
* Returns the appropriate tile at coordinate
|
|
8163
|
+
*/
|
|
8164
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: AbortSignal): Promise<Response>;
|
|
8165
|
+
/**
|
|
8166
|
+
* Fetch attribution for the current tiles
|
|
8167
|
+
* format: [SouthwestCorner_Longitude, SouthwestCorner_Latitude, NortheastCorner_Longitude, NortheastCorner_Latitude]
|
|
8168
|
+
*/
|
|
8169
|
+
fetchAttribution?(zoomLevel: number, bounds: [number, number, number, number]): Promise<Response>;
|
|
8077
8170
|
}
|
|
8171
|
+
/**
|
|
8172
|
+
* @experimental
|
|
8173
|
+
* Azure maps outdoor context class
|
|
8174
|
+
*/
|
|
8078
8175
|
export class AzureOutdoorContextProvider implements IOutdoorContextProvider {
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8176
|
+
lang: string;
|
|
8177
|
+
apiKey?: string;
|
|
8178
|
+
token?: string;
|
|
8179
|
+
tileSize: number;
|
|
8180
|
+
tilesetId: string;
|
|
8181
|
+
constructor(lang?: string, tileSize?: 256 | 512, apiKey?: string, token?: string);
|
|
8182
|
+
makeURL(x: number, y: number, zoom: number): string;
|
|
8183
|
+
/**
|
|
8184
|
+
* Fetch attribution for the current tiles
|
|
8185
|
+
* format: [SouthwestCorner_Longitude, SouthwestCorner_Latitude, NortheastCorner_Longitude, NortheastCorner_Latitude]
|
|
8186
|
+
*/
|
|
8187
|
+
fetchAttribution(zoomLevel: number, bounds: [number, number, number, number]): Promise<Response>;
|
|
8188
|
+
/**
|
|
8189
|
+
* Returns the appropriate tile at coordinate
|
|
8190
|
+
*/
|
|
8191
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: AbortSignal): Promise<Response>;
|
|
8092
8192
|
}
|
|
8193
|
+
/**
|
|
8194
|
+
* @experimental
|
|
8195
|
+
* Google maps outdoor context class
|
|
8196
|
+
*/
|
|
8093
8197
|
export class GoogleOutdoorContextProvider implements IOutdoorContextProvider {
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8198
|
+
apiKey: string;
|
|
8199
|
+
sessionToken: string;
|
|
8200
|
+
lang: string;
|
|
8201
|
+
constructor(lang: string | undefined, apiKey: string);
|
|
8202
|
+
makeURL(x: number, y: number, zoom: number): string;
|
|
8203
|
+
/**
|
|
8204
|
+
* Returns the Google session token
|
|
8205
|
+
*/
|
|
8206
|
+
fetchSessionToken(): Promise<void>;
|
|
8207
|
+
/**
|
|
8208
|
+
* Returns the appropriate tile at coordinate
|
|
8209
|
+
*/
|
|
8210
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: any): Promise<Response>;
|
|
8101
8211
|
}
|
|
8212
|
+
/**
|
|
8213
|
+
* @experimental
|
|
8214
|
+
* OpenStreetMap maps outdoor context class
|
|
8215
|
+
*/
|
|
8102
8216
|
export class OpenStreetMapOutdoorContext implements IOutdoorContextProvider {
|
|
8103
|
-
|
|
8104
|
-
|
|
8217
|
+
makeURL(x: number, y: number, z: number): string;
|
|
8218
|
+
/**
|
|
8219
|
+
* Returns the appropriate tile at coordinate
|
|
8220
|
+
*/
|
|
8221
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: any): Promise<Response>;
|
|
8105
8222
|
}
|
|
8106
8223
|
}
|
|
8107
8224
|
|