@mappedin/react-native-sdk 5.32.0 → 5.34.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.
package/dist/index.d.ts
CHANGED
|
@@ -3642,7 +3642,10 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
|
|
|
3642
3642
|
* An object containing all outlined polygons.
|
|
3643
3643
|
*/
|
|
3644
3644
|
outlinedPolygons: Map<string, MappedinPolygon>;
|
|
3645
|
-
|
|
3645
|
+
/**
|
|
3646
|
+
* A plane that is parallel to the ground and is used for raycasting.
|
|
3647
|
+
*/
|
|
3648
|
+
worldPlane: Mesh;
|
|
3646
3649
|
getPositionLatLon(lat: number, lon: number, map?: MappedinMap | string | null): Vector3;
|
|
3647
3650
|
currentScale: number;
|
|
3648
3651
|
getPositionPolygon(polygon: MappedinPolygon | string): Vector3;
|
|
@@ -5251,6 +5254,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/Mappedin.type
|
|
|
5251
5254
|
clientId: string;
|
|
5252
5255
|
clientSecret: string;
|
|
5253
5256
|
venue: string;
|
|
5257
|
+
accessToken: string;
|
|
5254
5258
|
};
|
|
5255
5259
|
export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
|
|
5256
5260
|
perspective?: string;
|
|
@@ -5943,8 +5947,8 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinLocat
|
|
|
5943
5947
|
}
|
|
5944
5948
|
|
|
5945
5949
|
declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinCoordinate' {
|
|
5946
|
-
import { MappedinNode, Mappedin } from '@mappedin/react-native-sdk/sdks/packages/get-venue/internal';
|
|
5947
5950
|
import type { MappedinMap } from '@mappedin/react-native-sdk/sdks/packages/get-venue/internal';
|
|
5951
|
+
import { Mappedin, MappedinNode } from '@mappedin/react-native-sdk/sdks/packages/get-venue/internal';
|
|
5948
5952
|
export type TMappedinCoordinateOptions = {
|
|
5949
5953
|
map: MappedinMap;
|
|
5950
5954
|
mappedin: Mappedin;
|
|
@@ -6007,6 +6011,11 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinCoord
|
|
|
6007
6011
|
* Get Nearest Node to Coordinate, which can then be used for navigation
|
|
6008
6012
|
*/
|
|
6009
6013
|
get nearestNode(): MappedinNode;
|
|
6014
|
+
/**
|
|
6015
|
+
* Get the {@link MappedinNode}s within a radius of the {@link MappedinCoordinate}.
|
|
6016
|
+
* @param radius - The radius in metres.
|
|
6017
|
+
*/
|
|
6018
|
+
nodesInRadius(radius: number): MappedinNode[];
|
|
6010
6019
|
toJSON(): {
|
|
6011
6020
|
x: number;
|
|
6012
6021
|
y: number;
|
|
@@ -6585,13 +6594,15 @@ declare module '@mappedin/react-native-sdk/sdks/packages/navigator/NavigationGra
|
|
|
6585
6594
|
* @param accessible boolean - optional, if true directions will only take accessible route, defaults to false
|
|
6586
6595
|
* @param includedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6587
6596
|
* @param excludedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6597
|
+
* @param excludedNodeIds set - optional, exclude all the nodes matching the given IDs
|
|
6588
6598
|
*/
|
|
6589
|
-
aStar({ originIds, destinationNodeIds, accessible, includedVortexIds, excludedVortexIds, }: {
|
|
6599
|
+
aStar({ originIds, destinationNodeIds, accessible, includedVortexIds, excludedVortexIds, excludedNodeIds, }: {
|
|
6590
6600
|
originIds: string[];
|
|
6591
6601
|
destinationNodeIds: string[];
|
|
6592
6602
|
accessible: boolean;
|
|
6593
6603
|
includedVortexIds?: Set<string>;
|
|
6594
6604
|
excludedVortexIds?: Set<string>;
|
|
6605
|
+
excludedNodeIds?: Set<string>;
|
|
6595
6606
|
}): Edge[];
|
|
6596
6607
|
getDistance(origin: INode, destination: INode): number;
|
|
6597
6608
|
getShortestEuclideanDistance(origin: INode, destinations: INode[]): number;
|
|
@@ -6658,10 +6669,11 @@ declare module '@mappedin/react-native-sdk/sdks/packages/navigator/Navigator' {
|
|
|
6658
6669
|
* @param includedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6659
6670
|
* @param excludedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6660
6671
|
*/
|
|
6661
|
-
getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, includedVortexIds, excludedVortexIds, simplify, }: {
|
|
6672
|
+
getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, includedVortexIds, excludedVortexIds, excludedNodeIds, simplify, }: {
|
|
6662
6673
|
originIds: string[];
|
|
6663
6674
|
includedVortexIds?: Set<string>;
|
|
6664
6675
|
excludedVortexIds?: Set<string>;
|
|
6676
|
+
excludedNodeIds?: Set<string>;
|
|
6665
6677
|
destinationNodeIds: string[];
|
|
6666
6678
|
accessible: boolean;
|
|
6667
6679
|
departFrom?: ILocation;
|
|
@@ -7285,7 +7297,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
|
|
|
7285
7297
|
resolution: Vector2;
|
|
7286
7298
|
cameraParameters: any;
|
|
7287
7299
|
controls: typeof Mappedin.CameraControls;
|
|
7288
|
-
|
|
7300
|
+
worldPlane: Mesh;
|
|
7289
7301
|
canvasWidth: number;
|
|
7290
7302
|
canvasHeight: number;
|
|
7291
7303
|
cachedPadding: TPadding;
|
|
@@ -7624,7 +7636,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/pub-sub.typed
|
|
|
7624
7636
|
* @template EVENT_PAYLOAD - The type of the event payload.
|
|
7625
7637
|
* @template EVENT - The type of the event.
|
|
7626
7638
|
*/
|
|
7627
|
-
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD> {
|
|
7639
|
+
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
|
|
7628
7640
|
/**
|
|
7629
7641
|
* @private
|
|
7630
7642
|
* @internal
|
|
@@ -7695,6 +7707,10 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinNavig
|
|
|
7695
7707
|
* Exclude all the vortexes matching the given IDs
|
|
7696
7708
|
*/
|
|
7697
7709
|
excludedVortexIds?: string[];
|
|
7710
|
+
/**
|
|
7711
|
+
* Exclude all the nodes matching the given IDs
|
|
7712
|
+
*/
|
|
7713
|
+
excludedNodeIds?: string[];
|
|
7698
7714
|
/**
|
|
7699
7715
|
* @experimental
|
|
7700
7716
|
* Apply line-of-sight simplifying to directions. This will attempt to remove unnecessary nodes between turns.
|
|
@@ -8509,6 +8525,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/Mappedin.cach
|
|
|
8509
8525
|
get polygonsByMapId(): Map<string, MappedinPolygon[]>;
|
|
8510
8526
|
get nodesByMapId(): Map<string, MappedinNode[]>;
|
|
8511
8527
|
findNearestNodeOnMap(mapId: string, coordinate: MappedinCoordinate): MappedinNode;
|
|
8528
|
+
findNodeWithinRadiusOnMap(mapId: string, coordinate: MappedinCoordinate, radius: number): MappedinNode[];
|
|
8512
8529
|
get locationsByMapId(): Map<string, MappedinLocation[]>;
|
|
8513
8530
|
static instances: Map<Mappedin, MappedinCache>;
|
|
8514
8531
|
static create(mappedin: Mappedin): MappedinCache;
|
|
@@ -10233,73 +10250,76 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
|
|
|
10233
10250
|
import type { ICore, MappedinPolygon, Collider } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
|
|
10234
10251
|
import { BlueDotManager, Path } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
|
|
10235
10252
|
class EventSystem {
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10253
|
+
core: ICore;
|
|
10254
|
+
blueDotManager?: BlueDotManager;
|
|
10255
|
+
rendererDomElement: any;
|
|
10256
|
+
currentHover: string | null;
|
|
10257
|
+
hoverLabel: any;
|
|
10258
|
+
hoverColor: Color;
|
|
10259
|
+
options: {
|
|
10260
|
+
disableHover: boolean;
|
|
10261
|
+
};
|
|
10262
|
+
constructor(core: ICore);
|
|
10263
|
+
setBlueDotManager: (blueDotManager: any) => void;
|
|
10264
|
+
touchCount: number;
|
|
10265
|
+
zoomOut(): void;
|
|
10266
|
+
zoomIn(event: any): void;
|
|
10267
|
+
onPointerMove: (event: any) => void;
|
|
10268
|
+
onPointerUp: (event: any) => void;
|
|
10269
|
+
/**
|
|
10270
|
+
* We've confirmed that a map click has occured, so handle that here
|
|
10271
|
+
*/
|
|
10272
|
+
handleMapClick(event: any): void;
|
|
10273
|
+
onPointerDown: (event: any) => void;
|
|
10274
|
+
incrementTouches: (event: any) => void;
|
|
10275
|
+
decrementTouches: (event: any) => void;
|
|
10276
|
+
clearMouse: () => void;
|
|
10277
|
+
getMousePos: (event: any) => {
|
|
10278
|
+
x: any;
|
|
10279
|
+
y: any;
|
|
10280
|
+
};
|
|
10281
|
+
getScaledMousePos: (event: any) => {
|
|
10282
|
+
x: number;
|
|
10283
|
+
y: number;
|
|
10284
|
+
};
|
|
10285
|
+
cursorPos: {
|
|
10286
|
+
x: number;
|
|
10287
|
+
y: number;
|
|
10288
|
+
};
|
|
10289
|
+
mouse: {
|
|
10290
|
+
x: number;
|
|
10291
|
+
y: number;
|
|
10292
|
+
};
|
|
10293
|
+
mouseDownStart: {
|
|
10294
|
+
time: number;
|
|
10295
|
+
clientX: number;
|
|
10296
|
+
clientY: number;
|
|
10297
|
+
};
|
|
10298
|
+
scaledCursorPos: {
|
|
10299
|
+
x: number;
|
|
10300
|
+
y: number;
|
|
10301
|
+
};
|
|
10302
|
+
hasTouched: boolean;
|
|
10303
|
+
calculateMouseCoordinates: (event: any) => void;
|
|
10304
|
+
getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
|
|
10305
|
+
detectCollidersUnderMouse: () => Collider[];
|
|
10306
|
+
detectPolygonsUnderMouse: () => string[];
|
|
10307
|
+
detectPathsUnderMouse: () => Path[];
|
|
10308
|
+
detectWatermarkUnderMouse: () => boolean;
|
|
10309
|
+
detectMapsUnderMouse: () => import("../../internal").MappedinMap[];
|
|
10310
|
+
/**
|
|
10311
|
+
* Gets mouse click position in x y map coordinates
|
|
10312
|
+
*/
|
|
10313
|
+
getMouseMapPosition: () => {
|
|
10314
|
+
x: number;
|
|
10315
|
+
y: number;
|
|
10316
|
+
};
|
|
10317
|
+
checkMouseIntersectsBlueDot: () => boolean;
|
|
10318
|
+
doHoverEffect: () => void;
|
|
10319
|
+
onPolygonHoverOut: (polygonId: string) => boolean;
|
|
10320
|
+
onPolygonHoverOver: (polygon: MappedinPolygon | string) => boolean;
|
|
10321
|
+
setHoverColor: (color: string) => void;
|
|
10322
|
+
destroy(): void;
|
|
10303
10323
|
}
|
|
10304
10324
|
export default EventSystem;
|
|
10305
10325
|
}
|
|
@@ -10415,115 +10435,141 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
|
|
|
10415
10435
|
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
|
|
10416
10436
|
import type { ICore, TCameraTransform } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
|
|
10417
10437
|
enum ACTION {
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10438
|
+
enable = "enable",
|
|
10439
|
+
disable = "disable",
|
|
10440
|
+
showOverview = "showOverview",
|
|
10441
|
+
zoomInToMap = "zoomInToMap",
|
|
10442
|
+
scrollToMap = "scrollToMap",
|
|
10443
|
+
restack = "restack"
|
|
10423
10444
|
}
|
|
10424
10445
|
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
10425
10446
|
type TParams = {
|
|
10426
|
-
|
|
10447
|
+
map: MappedinMap;
|
|
10427
10448
|
} | {
|
|
10428
|
-
|
|
10449
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
10429
10450
|
} | {
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10451
|
+
stackScene: MapViewStackScene;
|
|
10452
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
10453
|
+
verticalDistanceBetweenMaps?: number;
|
|
10433
10454
|
} | {
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10455
|
+
stackScene: MapViewStackScene;
|
|
10456
|
+
verticalDistanceBetweenMaps?: number;
|
|
10457
|
+
map: MappedinMap;
|
|
10458
|
+
nodes: MappedinNode[];
|
|
10438
10459
|
} | {
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10460
|
+
stackScene: MapViewStackScene;
|
|
10461
|
+
map: MappedinMap;
|
|
10462
|
+
nodes: MappedinNode[];
|
|
10463
|
+
rotation: number;
|
|
10464
|
+
cameraTransform?: TCameraTransform;
|
|
10465
|
+
verticalDistanceBetweenMaps?: number;
|
|
10445
10466
|
};
|
|
10446
10467
|
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
10447
10468
|
type TState = {
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10469
|
+
[stateName in STACKED_MAPS_STATE]?: {
|
|
10470
|
+
actions: {
|
|
10471
|
+
[actionName in ACTION]?: TActionFn;
|
|
10472
|
+
};
|
|
10451
10473
|
};
|
|
10452
|
-
};
|
|
10453
10474
|
};
|
|
10454
10475
|
export type TInternalTransitionOptions = {
|
|
10455
|
-
|
|
10476
|
+
animate?: boolean;
|
|
10456
10477
|
};
|
|
10457
10478
|
export type TStackedMapsOptions = {
|
|
10458
|
-
|
|
10459
|
-
|
|
10479
|
+
/**
|
|
10480
|
+
* The vertical distance between maps in overview, in metres.
|
|
10481
|
+
* @default 50
|
|
10482
|
+
*/
|
|
10483
|
+
verticalDistanceBetweenMaps?: number;
|
|
10484
|
+
/**
|
|
10485
|
+
* Whether to show map level labels in overview.
|
|
10486
|
+
* @default true
|
|
10487
|
+
*/
|
|
10488
|
+
mapLabels?: boolean;
|
|
10489
|
+
/**
|
|
10490
|
+
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
10491
|
+
* @default true
|
|
10492
|
+
*/
|
|
10493
|
+
prioritizeJourneyMaps?: boolean;
|
|
10460
10494
|
};
|
|
10461
10495
|
class StackedMapsController {
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
};
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10496
|
+
#private;
|
|
10497
|
+
options: TStackedMapsOptions;
|
|
10498
|
+
enabled: boolean;
|
|
10499
|
+
stackScene: MapViewStackScene;
|
|
10500
|
+
constructor(core: ICore);
|
|
10501
|
+
needsUpdate: boolean;
|
|
10502
|
+
currentState: STACKED_MAPS_STATE;
|
|
10503
|
+
mapsInStack: MappedinMap[];
|
|
10504
|
+
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
10505
|
+
activeMap: MappedinMap;
|
|
10506
|
+
focusOn: {
|
|
10507
|
+
targets: {
|
|
10508
|
+
nodes: MappedinNode[];
|
|
10509
|
+
};
|
|
10510
|
+
options: {
|
|
10511
|
+
zoom?: number;
|
|
10512
|
+
tilt: number;
|
|
10513
|
+
rotation: number;
|
|
10514
|
+
position?: MappedinNode | import("../../internal").MappedinCoordinate;
|
|
10515
|
+
easing: CAMERA_EASING_MODE;
|
|
10516
|
+
};
|
|
10517
|
+
};
|
|
10518
|
+
})[];
|
|
10519
|
+
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
10520
|
+
activeMap: MappedinMap;
|
|
10521
|
+
})[];
|
|
10522
|
+
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
10523
|
+
activeMap: MappedinMap;
|
|
10524
|
+
focusOn: {
|
|
10525
|
+
options: {
|
|
10526
|
+
tilt: number;
|
|
10527
|
+
duration: number;
|
|
10528
|
+
};
|
|
10529
|
+
};
|
|
10530
|
+
verticalDistanceBetweenMaps: number;
|
|
10531
|
+
})[];
|
|
10532
|
+
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
10533
|
+
focusOn: {
|
|
10534
|
+
targets: {
|
|
10535
|
+
nodes: MappedinNode[];
|
|
10536
|
+
};
|
|
10537
|
+
options: {
|
|
10538
|
+
tilt: number;
|
|
10539
|
+
easing: CAMERA_EASING_MODE;
|
|
10540
|
+
};
|
|
10541
|
+
};
|
|
10542
|
+
activeMap: MappedinMap;
|
|
10543
|
+
})[];
|
|
10544
|
+
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
10545
|
+
activeMap: MappedinMap;
|
|
10546
|
+
focusOn: {
|
|
10547
|
+
options: {
|
|
10548
|
+
tilt: number;
|
|
10549
|
+
duration: number;
|
|
10550
|
+
};
|
|
10551
|
+
};
|
|
10552
|
+
verticalDistanceBetweenMaps: number;
|
|
10553
|
+
})[];
|
|
10554
|
+
getEnableOptions: () => void;
|
|
10555
|
+
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
10556
|
+
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
10557
|
+
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
10558
|
+
getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
10559
|
+
getDisableTransition: (options: any) => () => Promise<void>;
|
|
10560
|
+
getEnableTransition: () => () => void;
|
|
10561
|
+
states: TState;
|
|
10562
|
+
get determineMapStack(): MappedinMap[];
|
|
10563
|
+
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
10564
|
+
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
10565
|
+
disable: () => Promise<void>;
|
|
10566
|
+
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
10567
|
+
get nodesInJourneyOrMap(): any[];
|
|
10568
|
+
showOverview: () => Promise<void>;
|
|
10569
|
+
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
10570
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
10571
|
+
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
10572
|
+
get currentMap(): MappedinMap;
|
|
10527
10573
|
}
|
|
10528
10574
|
export default StackedMapsController;
|
|
10529
10575
|
}
|
|
@@ -10551,7 +10597,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
|
|
|
10551
10597
|
/**
|
|
10552
10598
|
* Exports the current scene as a GLTF file.
|
|
10553
10599
|
*/
|
|
10554
|
-
getCurrentSceneGLTF(userOptions: TGLTFExportOptions)
|
|
10600
|
+
getCurrentSceneGLTF: (userOptions: TGLTFExportOptions) => Promise<Blob>;
|
|
10555
10601
|
}
|
|
10556
10602
|
}
|
|
10557
10603
|
|
|
@@ -10575,6 +10621,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
|
|
|
10575
10621
|
*/
|
|
10576
10622
|
getVisibleLayersForLoadedMap(map: MappedinMap): string[];
|
|
10577
10623
|
addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void>;
|
|
10624
|
+
removeGeoJSONLayer(layerName: string): Promise<void>;
|
|
10578
10625
|
}
|
|
10579
10626
|
export default LayerController;
|
|
10580
10627
|
}
|
|
@@ -11913,6 +11960,26 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/
|
|
|
11913
11960
|
* @returns Promise when all animations are complete.
|
|
11914
11961
|
*/
|
|
11915
11962
|
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
11963
|
+
/**
|
|
11964
|
+
* @experimental
|
|
11965
|
+
*
|
|
11966
|
+
* Used when in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state to replace the maps in the
|
|
11967
|
+
* current stack if there is a new Journey or Journey is cleared.
|
|
11968
|
+
*
|
|
11969
|
+
* @param options - Options to adjust the overview. Each option defaults to the setting passed in {@link enable}, unless provided.
|
|
11970
|
+
*
|
|
11971
|
+
* @example
|
|
11972
|
+
* ```ts
|
|
11973
|
+
* mapView.Journey.draw(...);
|
|
11974
|
+
* mapView.StackedMaps.enable();
|
|
11975
|
+
* mapView.StackedMaps.showOverview();
|
|
11976
|
+
* mapView.Journey.clear();
|
|
11977
|
+
* mapView.StackedMaps.restack();
|
|
11978
|
+
* ```
|
|
11979
|
+
*
|
|
11980
|
+
* @returns Promise when all animations are complete.
|
|
11981
|
+
*/
|
|
11982
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
11916
11983
|
/**
|
|
11917
11984
|
* @experimental
|
|
11918
11985
|
*
|
|
@@ -12077,6 +12144,12 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/
|
|
|
12077
12144
|
* Adds a GeoJSON Feature or FeatureCollection to the map as a layer. The layer name must be unique
|
|
12078
12145
|
*/
|
|
12079
12146
|
addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void>;
|
|
12147
|
+
/**
|
|
12148
|
+
* @experimental
|
|
12149
|
+
* Hides a GeoJSON layer from the map and removes it from the list of layers.
|
|
12150
|
+
* It will not appear in {@link getAllLayersForMap} afterwards and can be overwritten by a new layer with the same name.
|
|
12151
|
+
*/
|
|
12152
|
+
removeGeoJSONLayer(layerName: string): Promise<void>;
|
|
12080
12153
|
}
|
|
12081
12154
|
export default LayerController;
|
|
12082
12155
|
}
|