@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
- cameraPlane: any;
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
- cameraPlane: Mesh;
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
- core: ICore;
10237
- blueDotManager?: BlueDotManager;
10238
- rendererDomElement: any;
10239
- currentHover: string | null;
10240
- hoverLabel: any;
10241
- hoverColor: Color;
10242
- options: {
10243
- disableHover: boolean;
10244
- };
10245
- constructor(core: ICore);
10246
- setBlueDotManager: (blueDotManager: any) => void;
10247
- touchCount: number;
10248
- zoomOut(): void;
10249
- zoomIn(event: any): void;
10250
- onPointerMove: (event: any) => void;
10251
- onPointerUp: (event: any) => void;
10252
- /**
10253
- * We've confirmed that a map click has occured, so handle that here
10254
- */
10255
- handleMapClick(event: any): void;
10256
- onPointerDown: (event: any) => void;
10257
- incrementTouches: (event: any) => void;
10258
- decrementTouches: (event: any) => void;
10259
- clearMouse: () => void;
10260
- getMousePos: (event: any) => {
10261
- x: any;
10262
- y: any;
10263
- };
10264
- getScaledMousePos: (event: any) => {
10265
- x: number;
10266
- y: number;
10267
- };
10268
- cursorPos: {
10269
- x: number;
10270
- y: number;
10271
- };
10272
- mouse: {
10273
- x: number;
10274
- y: number;
10275
- };
10276
- mouseDownStart: {
10277
- time: number;
10278
- clientX: number;
10279
- clientY: number;
10280
- };
10281
- scaledCursorPos: {
10282
- x: number;
10283
- y: number;
10284
- };
10285
- hasTouched: boolean;
10286
- calculateMouseCoordinates: (event: any) => void;
10287
- getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
10288
- detectCollidersUnderMouse: () => Collider[];
10289
- detectPolygonsUnderMouse: () => string[];
10290
- detectPathsUnderMouse: () => Path[];
10291
- detectWatermarkUnderMouse: () => boolean;
10292
- detectMapsUnderMouse: () => import("../../internal").MappedinMap[];
10293
- getMouseMapPosition: () => {
10294
- x: number;
10295
- y: number;
10296
- };
10297
- checkMouseIntersectsBlueDot: () => boolean;
10298
- doHoverEffect: () => void;
10299
- onPolygonHoverOut: (polygonId: string) => boolean;
10300
- onPolygonHoverOver: (polygon: MappedinPolygon | string) => boolean;
10301
- setHoverColor: (color: string) => void;
10302
- destroy(): void;
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
- enable = "enable",
10419
- disable = "disable",
10420
- showOverview = "showOverview",
10421
- zoomInToMap = "zoomInToMap",
10422
- scrollToMap = "scrollToMap"
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
- map: MappedinMap;
10447
+ map: MappedinMap;
10427
10448
  } | {
10428
- directions: MappedinDirections | MappedinDirections[];
10449
+ directions: MappedinDirections | MappedinDirections[];
10429
10450
  } | {
10430
- stackScene: MapViewStackScene;
10431
- directions: MappedinDirections | MappedinDirections[];
10432
- verticalDistanceBetweenMaps?: number;
10451
+ stackScene: MapViewStackScene;
10452
+ directions: MappedinDirections | MappedinDirections[];
10453
+ verticalDistanceBetweenMaps?: number;
10433
10454
  } | {
10434
- stackScene: MapViewStackScene;
10435
- verticalDistanceBetweenMaps?: number;
10436
- map: MappedinMap;
10437
- nodes: MappedinNode[];
10455
+ stackScene: MapViewStackScene;
10456
+ verticalDistanceBetweenMaps?: number;
10457
+ map: MappedinMap;
10458
+ nodes: MappedinNode[];
10438
10459
  } | {
10439
- stackScene: MapViewStackScene;
10440
- map: MappedinMap;
10441
- nodes: MappedinNode[];
10442
- rotation: number;
10443
- cameraTransform?: TCameraTransform;
10444
- verticalDistanceBetweenMaps?: number;
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
- [stateName in STACKED_MAPS_STATE]?: {
10449
- actions: {
10450
- [actionName in ACTION]?: TActionFn;
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
- animate?: boolean;
10476
+ animate?: boolean;
10456
10477
  };
10457
10478
  export type TStackedMapsOptions = {
10458
- verticalDistanceBetweenMaps?: number;
10459
- mapLabels?: boolean;
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
- #private;
10463
- options: TStackedMapsOptions;
10464
- enabled: boolean;
10465
- stackScene: MapViewStackScene;
10466
- directions: MappedinDirections | MappedinDirections[];
10467
- constructor(core: ICore);
10468
- needsUpdate: boolean;
10469
- currentState: STACKED_MAPS_STATE;
10470
- mapsInJourney: MappedinMap[];
10471
- getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
10472
- activeMap: MappedinMap;
10473
- focusOn: {
10474
- targets: {
10475
- nodes: MappedinNode[];
10476
- };
10477
- options: {
10478
- zoom?: number;
10479
- tilt: number;
10480
- rotation: number;
10481
- position?: MappedinNode | import("../../internal").MappedinCoordinate;
10482
- easing: CAMERA_EASING_MODE;
10483
- };
10484
- };
10485
- })[];
10486
- getDisableOptions: (params: TParams) => (MapViewScene | {
10487
- activeMap: MappedinMap;
10488
- })[];
10489
- getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
10490
- activeMap: MappedinMap;
10491
- focusOn: {
10492
- options: {
10493
- tilt: number;
10494
- duration: number;
10495
- };
10496
- };
10497
- verticalDistanceBetweenMaps: number;
10498
- })[];
10499
- getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
10500
- focusOn: {
10501
- targets: {
10502
- nodes: MappedinNode[];
10503
- };
10504
- options: {
10505
- tilt: number;
10506
- easing: CAMERA_EASING_MODE;
10507
- };
10508
- };
10509
- activeMap: MappedinMap;
10510
- })[];
10511
- getEnableOptions: (params: TParams) => void;
10512
- getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
10513
- getZoomInToMapTransition: (options: any) => () => Promise<void>;
10514
- getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
10515
- getDisableTransition: (options: any) => () => Promise<void>;
10516
- getEnableTransition: () => () => void;
10517
- states: TState;
10518
- transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
10519
- exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
10520
- disable: () => Promise<void>;
10521
- enable: (opts?: TStackedMapsOptions) => Promise<void>;
10522
- get nodesInJourney(): MappedinNode[];
10523
- showOverview: () => Promise<void>;
10524
- scrollToMap: (map: MappedinMap) => Promise<void>;
10525
- zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
10526
- get currentMap(): MappedinMap;
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): Promise<Blob>;
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
  }