@mappedin/react-native-sdk 5.16.0 → 5.17.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
@@ -714,6 +714,27 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
714
714
  * @defaultValue false
715
715
  */
716
716
  interactive?: boolean;
717
+ /**
718
+ * @experimental
719
+ *
720
+ * @defaultValue false
721
+ * The path will be adjusted vertically to the tallest polygon altitude.
722
+ */
723
+ adjustedAltitude?: boolean;
724
+ /**
725
+ * @experimental
726
+ *
727
+ * The maximum altitude of the path in meters
728
+ * @defaultValue Infinite
729
+ */
730
+ maxAdjustedAltitude?: number;
731
+ /**
732
+ * @experimental
733
+ *
734
+ * @defaultValue -Infinite
735
+ * The minimum altitude of the path in meters
736
+ */
737
+ minAdjustedAltitude?: number;
717
738
  };
718
739
  export type TConnectionProps = {
719
740
  /**
@@ -1147,6 +1168,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
1147
1168
  * Customize the appearance of the Floating Labels and their pins
1148
1169
  */
1149
1170
  appearance?: TFloatingLabelAppearance;
1171
+ /**
1172
+ * Group analytics based ranking by {@link MappedinCategory.sortOrder} value
1173
+ */
1174
+ groupRankingByCategory?: boolean;
1150
1175
  };
1151
1176
  export type TAddFlatLabelOptions = {
1152
1177
  appearance?: TFlatLabelAppearance;
@@ -1156,6 +1181,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
1156
1181
  rank?: COLLISION_RANKING_TIERS | number;
1157
1182
  appearance?: TFloatingLabelAppearance;
1158
1183
  interactive?: boolean;
1184
+ /**
1185
+ * Group analytics based ranking by {@link MappedinCategory.sortOrder} value
1186
+ */
1187
+ groupRankingByCategory?: boolean;
1159
1188
  };
1160
1189
  export type TLabelAllLocationCommonOptions = {
1161
1190
  /**
@@ -1220,6 +1249,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
1220
1249
  export type TFloatingLabelAllLocationsOptions = TLabelAllLocationCommonOptions & {
1221
1250
  appearance?: TFloatingLabelAppearance;
1222
1251
  interactive?: boolean;
1252
+ /**
1253
+ * Group analytics based ranking by {@link MappedinCategory.sortOrder} value
1254
+ */
1255
+ groupRankingByCategory?: boolean;
1223
1256
  };
1224
1257
  /**
1225
1258
  * Options for controlling bulk location labelling
@@ -1355,6 +1388,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
1355
1388
  export { MappedinRankings } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinRankings';
1356
1389
  export { MappedinDestinationSet } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDestinationSet';
1357
1390
  export { MappedinNavigatable } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
1391
+ export { MappedinLocationState } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocationState';
1358
1392
  /**
1359
1393
  * @internal
1360
1394
  * @hidden
@@ -1362,7 +1396,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
1362
1396
  * Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
1363
1397
  */
1364
1398
  export { default as CustomerAnalytics } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.CustomerAnalytics';
1365
- export type { TTHINGS } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
1399
+ export type { TTHINGS, TAccessors } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
1366
1400
  export type { TMappedinDirective } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirections';
1367
1401
  export type { IDirectionsResult } from '@mappedin/react-native-sdk/core/packages/navigator';
1368
1402
  export type { TOperationHoursMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
@@ -2024,6 +2058,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/contro
2024
2058
  export type TCameraAnimationOptions = TAnimationOptions;
2025
2059
  /**
2026
2060
  * The Camera object specifies a view of the map and allows manipulation of that view.
2061
+ * @internal
2027
2062
  */
2028
2063
  class CameraController extends PubSub<CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT> {
2029
2064
  #private;
@@ -2679,7 +2714,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/pub-sub' {
2679
2714
 
2680
2715
  declare module '@mappedin/react-native-sdk/core/packages/renderer/private/Core.interface' {
2681
2716
  import { Vector2, Vector3, Mesh } from 'three';
2682
- import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
2717
+ import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController, SmartCollisionEngine } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
2683
2718
  import { BlueDotController, CameraController, STATE, MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, changeListenerFn, RENDER, INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT, TaskScheduler, SceneManager, PubSub, FlatLabel, MapObject, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
2684
2719
  import Tween, { Easing } from '@tweenjs/tween.js';
2685
2720
  export type TFocusOptionsLegacy = {
@@ -2902,7 +2937,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/Core.i
2902
2937
  bottom: number;
2903
2938
  right: number;
2904
2939
  }): void;
2905
- smartCollisionEngine: any;
2940
+ smartCollisionEngine: SmartCollisionEngine;
2906
2941
  mapObjects: Map<MappedinMap['id'], MapObject>;
2907
2942
  /**
2908
2943
  * The scene only renders when something has changed. This should be something a 3rd party developer doesn't need to worry about,
@@ -4365,7 +4400,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
4365
4400
  POLYGON = "polygons",
4366
4401
  VORTEX = "vortexes"
4367
4402
  }
4368
- type TAccessors = {
4403
+ export type TAccessors = {
4369
4404
  [MappedinCollectionType.CATEGORY]: MappedinCategory;
4370
4405
  [MappedinCollectionType.EVENT]: MappedinEvent;
4371
4406
  [MappedinCollectionType.LOCATION]: MappedinLocation;
@@ -4823,6 +4858,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolyg
4823
4858
  x: number;
4824
4859
  y: number;
4825
4860
  };
4861
+ /** Category grouped ranking determined by the {@link MappedinCategory.sortOrder} and {@link rank} for this polygon. */
4862
+ categoryRank?: number;
4826
4863
  constructor(mappedin: Mappedin, data: any);
4827
4864
  /**
4828
4865
  * Map Object that this Polygon is located on.
@@ -4985,6 +5022,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCateg
4985
5022
  id?: string | undefined;
4986
5023
  icon?: TPicture | undefined;
4987
5024
  iconFromDefaultList?: string | undefined;
5025
+ /** Category sort priority. */
5026
+ sortOrder?: number | undefined;
4988
5027
  constructor(mappedin: Mappedin, data: any);
4989
5028
  /**
4990
5029
  * Locations in this Category.
@@ -5219,6 +5258,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVenue
5219
5258
  name: string;
5220
5259
  code: string;
5221
5260
  }[];
5261
+ topLocations?: string[];
5222
5262
  constructor(mappedin: Mappedin, data: any);
5223
5263
  get metadata(): any;
5224
5264
  set metadata(value: any);
@@ -5265,23 +5305,23 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirec
5265
5305
  import type { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinMap';
5266
5306
  import type { MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode';
5267
5307
  import type { MappedinVortex } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVortex';
5268
- interface IActionDeparture {
5308
+ export interface IActionDeparture {
5269
5309
  type: ACTION_TYPE.DEPARTURE;
5270
5310
  }
5271
- interface IActionArrival {
5311
+ export interface IActionArrival {
5272
5312
  type: ACTION_TYPE.ARRIVAL;
5273
5313
  }
5274
- interface IActionTakeVortex {
5314
+ export interface IActionTakeVortex {
5275
5315
  type: ACTION_TYPE.TAKEVORTEX;
5276
5316
  toMap: MappedinMap;
5277
5317
  fromMap: MappedinMap;
5278
5318
  }
5279
- interface IActionExitVortex {
5319
+ export interface IActionExitVortex {
5280
5320
  type: ACTION_TYPE.EXITVORTEX;
5281
5321
  toMap: MappedinMap;
5282
5322
  fromMap: MappedinMap;
5283
5323
  }
5284
- interface IActionTurn {
5324
+ export interface IActionTurn {
5285
5325
  type: ACTION_TYPE.TURN;
5286
5326
  bearing: BEARING_TYPE;
5287
5327
  referencePosition?: string;
@@ -5313,7 +5353,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirec
5313
5353
  constructor(mappedin: Mappedin, directions: IDirectionsResult);
5314
5354
  toJSON(): IDirectionsResult;
5315
5355
  }
5316
- export {};
5317
5356
  }
5318
5357
 
5319
5358
  declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCoordinate' {
@@ -5462,6 +5501,33 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavig
5462
5501
  }
5463
5502
  }
5464
5503
 
5504
+ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocationState' {
5505
+ import type { Mappedin } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
5506
+ /**
5507
+ * A location state, that can belong to any number of {@link MappedinLocation}s.
5508
+ * @class MappedinLocationState
5509
+ */
5510
+ export class MappedinLocationState {
5511
+ #private;
5512
+ /**
5513
+ * @internal
5514
+ */
5515
+ constructor(data: any);
5516
+ /**
5517
+ * @internal
5518
+ */
5519
+ static hydrate(locationStates: any): MappedinLocationState[];
5520
+ id: string;
5521
+ name: string;
5522
+ value: string;
5523
+ /**
5524
+ * @internal
5525
+ */
5526
+ static fetch(mappedin: Mappedin): Promise<MappedinLocationState[]>;
5527
+ toJSON(): any;
5528
+ }
5529
+ }
5530
+
5465
5531
  declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.CustomerAnalytics' {
5466
5532
  import { MappedinCategory, MappedinLocation, MappedinNavigatable } from '@mappedin/react-native-sdk/core/packages/get-venue';
5467
5533
  type AnalyticsOptions = {
@@ -5512,7 +5578,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Cust
5512
5578
  class Analytics implements IInternalAnalytics {
5513
5579
  #private;
5514
5580
  constructor(options: AnalyticsOptions);
5515
- track(target: any, query: any): void;
5581
+ track(target: string, query: Record<string, any>): void;
5516
5582
  /**
5517
5583
  * Whenever a location is selected, you should fire this event. What "selected" means can vary by venue,
5518
5584
  * but a good rule of thumb is that you fire the event whenever you would show the location's details.
@@ -5869,6 +5935,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.API.
5869
5935
  opens: string;
5870
5936
  closes: string;
5871
5937
  dayOfWeek: string[];
5938
+ validFrom?: string;
5939
+ validThrough?: string;
5872
5940
  };
5873
5941
  export type TSiblingGroup = {
5874
5942
  label: string;
@@ -6398,10 +6466,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
6398
6466
 
6399
6467
  declare module '@mappedin/react-native-sdk/core/packages/renderer' {
6400
6468
  import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
6401
- import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/react-native-sdk/core/packages/get-venue';
6469
+ import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/react-native-sdk/core/packages/get-venue';
6402
6470
  import { PositionUpdater } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
6403
6471
  import type { TMapViewOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
6404
- import { MARKER_ANCHOR } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Marker';
6405
6472
  export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/react-native-sdk/core/common/Mappedin.Logger';
6406
6473
  export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
6407
6474
  export type { Path } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/PathsController';
@@ -6416,6 +6483,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
6416
6483
  export type { BlueDot } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/BlueDot';
6417
6484
  export type { Markers } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/Markers';
6418
6485
  export type { Paths } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/Paths';
6486
+ export type { StackedMaps } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/StackedMaps';
6419
6487
  export type { TOOLTIP_ANCHOR } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
6420
6488
  export type TMappedinInitializeOutput = {
6421
6489
  mapView: MapView;
@@ -6440,8 +6508,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
6440
6508
  * @returns
6441
6509
  */
6442
6510
  function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
6443
- export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE, STACKED_MAPS_STATE, } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
6444
- export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, MappedinDestinationSet, MARKER_ANCHOR, };
6511
+ export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE, STACKED_MAPS_STATE, MARKER_ANCHOR, GEOLOCATION_STATUS, } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
6512
+ export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
6445
6513
  import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
6446
6514
  import { TTileManagerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.TileManager';
6447
6515
  /**
@@ -6457,13 +6525,13 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
6457
6525
  * @internal
6458
6526
  */
6459
6527
  DefaultAssetManager as AssetManager, };
6460
- export type { TMappedinDirective } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirections';
6528
+ export type { TMappedinDirective, IAction, IActionArrival, IActionDeparture, IActionExitVortex, IActionTakeVortex, IActionTurn, } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirections';
6461
6529
  export type { TMappedinInitializeOptions };
6462
6530
  export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
6463
6531
  export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
6464
6532
  export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, default as CameraController, } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/CameraController';
6465
- export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/react-native-sdk/core/packages/get-venue';
6466
- export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, } from '@mappedin/react-native-sdk/core/packages/get-venue';
6533
+ export type { TGetVenueOptions, TGetVenueBundleOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, TDirectionToOptions, TPicture, TImage, TColor, TGalleryImage, TOpeningHours, TPhone, TSiblingGroup, TSocial, TState, TGeoReference, TPolygonRanking, TOperationHoursMap, TAccessors, } from '@mappedin/react-native-sdk/core/packages/get-venue';
6534
+ export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, MappedinLocationState, } from '@mappedin/react-native-sdk/core/packages/get-venue';
6467
6535
  /**
6468
6536
  * @internal
6469
6537
  * @hidden
@@ -6472,7 +6540,24 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
6472
6540
  */
6473
6541
  export { CustomerAnalytics } from '@mappedin/react-native-sdk/core/packages/get-venue';
6474
6542
  export { BundleAssetManager } from '@mappedin/react-native-sdk/core/packages/renderer/bundle-asset-manager';
6543
+ /**
6544
+ * @experimental
6545
+ * Enable Tile Manager to render outdoor tiles around the venue. Must be called before {@link showVenue}.
6546
+ *
6547
+ * @example
6548
+ * ```ts
6549
+ * __enableTileManager({
6550
+ * provider: new AzureOutdoorContextProvider(
6551
+ * venue.options.language,
6552
+ * 256,
6553
+ * "Your Azure API Key",
6554
+ * undefined //Omitted when using API Key.
6555
+ * )
6556
+ * });
6557
+ * ```
6558
+ */
6475
6559
  export function __enableTileManager(options?: TTileManagerOptions): void;
6560
+ export type { TTileManagerOptions, TILE_RENDER_MODES } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.TileManager';
6476
6561
  export {
6477
6562
  /**
6478
6563
  * @internal
@@ -6637,24 +6722,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
6637
6722
  }
6638
6723
  }
6639
6724
 
6640
- declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocationState' {
6641
- import type { Mappedin } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
6642
- /**
6643
- * A location state, that can belong to any number of {@link MappedinLocation}s.
6644
- * @class MappedinLocationState
6645
- */
6646
- export class MappedinLocationState {
6647
- #private;
6648
- constructor(data: any);
6649
- static hydrate(locationStates: any): MappedinLocationState[];
6650
- id: string;
6651
- name: string;
6652
- value: string;
6653
- static fetch(mappedin: Mappedin): Promise<MappedinLocationState[]>;
6654
- toJSON(): any;
6655
- }
6656
- }
6657
-
6658
6725
  declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinTheme' {
6659
6726
  import type { Mappedin } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
6660
6727
  export class MappedinTheme {
@@ -8306,7 +8373,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/contro
8306
8373
  hasTouched: boolean;
8307
8374
  calculateMouseCoordinates: (event: any) => void;
8308
8375
  getMouseRayIntersects: (objects: Object3D | Object3D[]) => any;
8309
- detectCollidersUnderMouse: () => any;
8376
+ detectCollidersUnderMouse: () => any[];
8310
8377
  detectPolygonsUnderMouse: () => string[];
8311
8378
  detectPathsUnderMouse: () => Path[];
8312
8379
  detectMapsUnderMouse: () => any;
@@ -9198,7 +9265,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView
9198
9265
  */
9199
9266
  options: TMapViewOptions;
9200
9267
  /**
9201
- * @hidden
9268
+ * API for showing multiple maps as a vertical stack.
9202
9269
  */
9203
9270
  StackedMaps: StackedMaps;
9204
9271
  /**
@@ -9664,13 +9731,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/outdo
9664
9731
  import Object3D from '@mappedin/react-native-sdk/core/packages/renderer/internal/object3D.destroy';
9665
9732
  import { Tile } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.Tile';
9666
9733
  import { IOutdoorContextProvider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Outdoor-Context.provider';
9734
+ /**
9735
+ * @experimental
9736
+ */
9667
9737
  export enum TILE_RENDER_MODES {
9668
9738
  NORMAL = 0,
9669
9739
  AGGRESSIVE = 1
9670
9740
  }
9671
9741
  export const TILE_COLOR = "#f0f0f1";
9672
9742
  /**
9673
- * @internal
9743
+ * @experimental
9674
9744
  */
9675
9745
  export type TTileManagerOptions = {
9676
9746
  tileRenderMode?: TILE_RENDER_MODES;
@@ -10345,6 +10415,122 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Pat
10345
10415
  }
10346
10416
  }
10347
10417
 
10418
+ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/StackedMaps' {
10419
+ import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
10420
+ import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
10421
+ /**
10422
+ * API for showing multiple maps involved in a {@link Journey} as a vertical stack.
10423
+ */
10424
+ export class StackedMaps {
10425
+ #private;
10426
+ /**
10427
+ * @hidden
10428
+ */
10429
+ constructor(markersController: StackedMapsController);
10430
+ /**
10431
+ * @experimental
10432
+ * Enable Stacked Maps. A {@link Journey} must be drawn beforehand or this method will fail.
10433
+ * Use {@link showOverview} to expand the maps vertically after enabling.
10434
+ *
10435
+ * Upon enabling, map state will become {@link STATE.STACKED | STACKED} and Stacked Maps state will become {@link STACKED_MAPS_STATE.ACTIVE | ACTIVE}.
10436
+ *
10437
+ * @example
10438
+ * ```ts
10439
+ * // Create a Journey
10440
+ * const startLocation = mapView.venue.locations.find(...);
10441
+ * const endLocation = mapView.venue.locations.find(...);
10442
+ * mapView.Journey.draw(startLocation.directionsTo(endLocation));
10443
+ *
10444
+ * // Enable and show Stacked Maps Overview
10445
+ * mapView.StackedMaps.enable({
10446
+ * verticalDistanceBetweenMaps: 150
10447
+ * });
10448
+ * mapView.StackedMaps.showOverview();
10449
+ * ```
10450
+ *
10451
+ * @returns Promise when all animations are complete.
10452
+ */
10453
+ enable: (opts?: {
10454
+ verticalDistanceBetweenMaps?: number | undefined;
10455
+ } | undefined) => Promise<void>;
10456
+ /**
10457
+ * @experimental
10458
+ *
10459
+ * Disable Stacked Maps and zoom in to the current map. Stacked Maps state will become {@link STACKED_MAPS_STATE.INACTIVE | INACTIVE}.
10460
+ *
10461
+ * @example
10462
+ * ```ts
10463
+ * mapView.StackedMaps.disable();
10464
+ * ```
10465
+ *
10466
+ * @returns Promise when all animations are complete.
10467
+ */
10468
+ disable: () => Promise<void>;
10469
+ /**
10470
+ * @experimental
10471
+ *
10472
+ * Expand the maps in the current {@link Journey} vertically and add vertical paths between connections.
10473
+ * Stacked Maps must be enabled beforehand and state will become {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW}.
10474
+ *
10475
+ * @example
10476
+ * ```ts
10477
+ * mapView.Journey.draw(...)
10478
+ * mapView.StackedMaps.enable();
10479
+ * mapView.StackedMaps.showOverview();
10480
+ * ```
10481
+ *
10482
+ * @returns Promise when all animations are complete.
10483
+ */
10484
+ showOverview: () => Promise<void>;
10485
+ /**
10486
+ * @experimental
10487
+ *
10488
+ * Scroll the camera to a specific map in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state.
10489
+ *
10490
+ * @example
10491
+ * ```ts
10492
+ * // Zoom into a clicked map if Stacked Maps is in Overview state
10493
+ * mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
10494
+ * if (maps.length <= 0) return;
10495
+ * if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
10496
+ * mapView.StackedMaps.scrollToMap(maps[0]);
10497
+ * }
10498
+ * });
10499
+ * ```
10500
+ *
10501
+ * @returns Promise when all animations are complete.
10502
+ */
10503
+ scrollToMap: (map: MappedinMap) => Promise<void>;
10504
+ /**
10505
+ * @experimental
10506
+ *
10507
+ * Scroll and zoom into a specific map in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state. Stacked Maps state will become {@link STACKED_MAPS_STATE.ZOOMED_IN | ZOOMED_IN}.
10508
+ *
10509
+ * @example
10510
+ * ```ts
10511
+ * // Zoom into a clicked map if Stacked Maps is in Overview state
10512
+ * mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
10513
+ * if (maps.length <= 0) return;
10514
+ * if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
10515
+ * mapView.StackedMaps.zoomInToMap(maps[0]);
10516
+ * }
10517
+ * });
10518
+ * ```
10519
+ *
10520
+ * @returns Promise when all animations are complete.
10521
+ */
10522
+ zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform | undefined) => Promise<void>;
10523
+ /**
10524
+ * @experimental
10525
+ *
10526
+ * Get the current state of Stacked Maps.
10527
+ *
10528
+ * @returns The current {@link STACKED_MAPS_STATE}
10529
+ */
10530
+ get state(): STACKED_MAPS_STATE;
10531
+ }
10532
+ }
10533
+
10348
10534
  declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/quad-tree' {
10349
10535
  export function contains(rect1: Rectangle, rect2: Rectangle): boolean;
10350
10536
  export function intersects(rect1: Rectangle, rect2: Rectangle): boolean;
@@ -10475,70 +10661,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
10475
10661
  }
10476
10662
  }
10477
10663
 
10478
- declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/StackedMaps' {
10479
- import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
10480
- import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
10481
- /**
10482
- * Stacked Maps API
10483
- */
10484
- export class StackedMaps {
10485
- #private;
10486
- /**
10487
- * @hidden
10488
- */
10489
- constructor(markersController: StackedMapsController);
10490
- /**
10491
- * @experimental
10492
- * Enable stacked maps, which can be used to view maps involved in current journey as a vertical stack
10493
- *
10494
- * @returns Promise when all animations are complete
10495
- */
10496
- enable: (opts?: {
10497
- verticalDistanceBetweenMaps?: number | undefined;
10498
- } | undefined) => Promise<void>;
10499
- /**
10500
- * @experimental
10501
- *
10502
- * Disables the current stacked maps experience and returns to the current map view
10503
- *
10504
- * @returns Promise when all animations are complete
10505
- */
10506
- disable: () => Promise<void>;
10507
- /**
10508
- * @experimental
10509
- *
10510
- * Expand the maps in current journey vertically and add vertical paths
10511
- *
10512
- * @returns Promise when all animations are complete
10513
- */
10514
- showOverview: () => Promise<void>;
10515
- /**
10516
- * @experimental
10517
- *
10518
- * Scroll to a specific map in the current journey (only available in Overview mode)
10519
- *
10520
- * @returns Promise when all animations are complete
10521
- */
10522
- scrollToMap: (map: MappedinMap) => Promise<void>;
10523
- /**
10524
- * @experimental
10525
- *
10526
- * Scroll and zoom to a specific map in the current journey (only available in Overview mode)
10527
- *
10528
- * @returns Promise when all animations are complete
10529
- */
10530
- zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform | undefined) => Promise<void>;
10531
- /**
10532
- * @experimental
10533
- *
10534
- * Get the current state (such as Overview or Zoomed In) of Stacked Maps
10535
- *
10536
- * @returns The current {@link STACKED_MAPS_STATE}
10537
- */
10538
- get state(): STACKED_MAPS_STATE;
10539
- }
10540
- }
10541
-
10542
10664
  declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/object3D.destroy' {
10543
10665
  export default Object3D;
10544
10666
  }