venue-js 1.0.0-1 → 1.0.0-3
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.mts +41 -35
- package/dist/index.d.ts +41 -35
- package/dist/index.js +159 -134
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +161 -135
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ export { QueryObserver } from '@tanstack/query-core';
|
|
|
3
3
|
import * as geojson from 'geojson';
|
|
4
4
|
import { Position, Geometry, GeoJsonProperties, Feature, Point, Polygon, MultiPolygon, LineString, GeometryCollection } from 'geojson';
|
|
5
5
|
import * as maptalks from 'maptalks';
|
|
6
|
-
import { Coordinate, Map,
|
|
7
|
-
import {
|
|
6
|
+
import { Coordinate, Map, MapViewType, MapAnimationOptionsType, HandlerFn, EventParams, MapPaddingType, Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
7
|
+
import { BaseObject, ThreeLayer } from 'maptalks.three';
|
|
8
8
|
import { ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
9
9
|
import { SpriteMaterial, AmbientLight, DirectionalLight } from 'three';
|
|
10
10
|
|
|
@@ -471,6 +471,22 @@ type AnchorFeaturePopulated = AnchorFeature & {
|
|
|
471
471
|
section?: SectionFeaturePopulated;
|
|
472
472
|
};
|
|
473
473
|
};
|
|
474
|
+
type FixtureFeaturePopulated = FixtureFeature & {
|
|
475
|
+
properties: FixtureFeature["properties"] & {
|
|
476
|
+
/**
|
|
477
|
+
* [IMDF] The unit this anchor is on.
|
|
478
|
+
*/
|
|
479
|
+
anchor: AnchorFeaturePopulated;
|
|
480
|
+
/**
|
|
481
|
+
* [IMDF] Level that kiosk is on
|
|
482
|
+
*/
|
|
483
|
+
level: LevelFeaturePopulated;
|
|
484
|
+
/**
|
|
485
|
+
* [IMDF] Venue that kiosk is in
|
|
486
|
+
*/
|
|
487
|
+
venue?: VenueFeaturePopulated;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
474
490
|
type KioskFeaturePopulated = KioskFeature & {
|
|
475
491
|
properties: KioskFeature["properties"] & {
|
|
476
492
|
/**
|
|
@@ -589,7 +605,7 @@ type FeaturePopulatedResponseMap = {
|
|
|
589
605
|
anchor: AnchorFeaturePopulated;
|
|
590
606
|
building: ImdfFeature;
|
|
591
607
|
detail: DetailFeature;
|
|
592
|
-
fixture:
|
|
608
|
+
fixture: FixtureFeaturePopulated;
|
|
593
609
|
footprint: ImdfFeature;
|
|
594
610
|
geofence: ImdfFeature;
|
|
595
611
|
kiosk: KioskFeaturePopulated;
|
|
@@ -639,6 +655,7 @@ interface VenueDataClient {
|
|
|
639
655
|
projectId: string;
|
|
640
656
|
queryClient: QueryClient;
|
|
641
657
|
registerObserver: (featureType: FeatureType, refetchInterval: number) => QueryObserver;
|
|
658
|
+
destroyObserver: (featureType: FeatureType) => void;
|
|
642
659
|
destroyObservers: () => void;
|
|
643
660
|
createFilterByTypeQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, params: FilterParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T][] | FeaturePopulatedResponseMap[T][]>;
|
|
644
661
|
createFindByIdQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, id: string, params: FindParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T] | FeaturePopulatedResponseMap[T]>;
|
|
@@ -675,8 +692,9 @@ type CreateExtrudePolygonOptionType = ExtrudePolygonOptionType & {
|
|
|
675
692
|
offset?: number;
|
|
676
693
|
};
|
|
677
694
|
type Element3DRendererOptions = {
|
|
678
|
-
|
|
695
|
+
fixture?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
679
696
|
kiosk?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
697
|
+
unit?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
680
698
|
};
|
|
681
699
|
/** RendererManager */
|
|
682
700
|
type RendererManagerOptions = {
|
|
@@ -687,8 +705,9 @@ type RendererManagerOptions = {
|
|
|
687
705
|
elements: Element3DRendererOptions;
|
|
688
706
|
};
|
|
689
707
|
|
|
690
|
-
declare class RendererManager {
|
|
708
|
+
declare class RendererManager extends EventTarget {
|
|
691
709
|
#private;
|
|
710
|
+
map: maptalks.Map;
|
|
692
711
|
options: RendererManagerOptions;
|
|
693
712
|
/** Elements: Responsible for converting feature info elements and add to map */
|
|
694
713
|
private elementRenderer;
|
|
@@ -696,19 +715,24 @@ declare class RendererManager {
|
|
|
696
715
|
private elementsByOrdinal;
|
|
697
716
|
constructor(map: maptalks.Map, options: RendererManagerOptions);
|
|
698
717
|
set dataClient(value: any);
|
|
718
|
+
getElementsByOrdinal: (ordinal: number) => (BaseObject | maptalks.Geometry | maptalks.ui.UIMarker)[];
|
|
699
719
|
changeLevelByOrdinal(targetOrdinal: null | number | number[]): void;
|
|
700
720
|
createMarker(coordinate: Position, ordinal: number, label: string): void;
|
|
701
721
|
}
|
|
702
722
|
|
|
703
723
|
interface IndoorMapOptions {
|
|
704
|
-
center?: [number, number];
|
|
705
|
-
defaultZoom?: number;
|
|
706
|
-
pixelRatio?: number;
|
|
707
|
-
locale?: string;
|
|
708
724
|
onMapReady?: () => void;
|
|
709
725
|
onMapLoading?: () => void;
|
|
710
726
|
dataClient: VenueDataClient;
|
|
727
|
+
camera?: {
|
|
728
|
+
defaultCenter?: [number, number];
|
|
729
|
+
defaultZoom?: number;
|
|
730
|
+
defaultBearing?: number;
|
|
731
|
+
defaultPitch?: number;
|
|
732
|
+
};
|
|
711
733
|
renderer?: RendererManagerOptions;
|
|
734
|
+
pixelRatio?: number;
|
|
735
|
+
locale?: string;
|
|
712
736
|
}
|
|
713
737
|
type AmenityHighlightMode = "2DMarker";
|
|
714
738
|
type SymbolSet = string | null;
|
|
@@ -791,34 +815,24 @@ interface IMapConfig {
|
|
|
791
815
|
}
|
|
792
816
|
|
|
793
817
|
interface CameraManagerOptions {
|
|
794
|
-
|
|
795
|
-
defaultZoom: number;
|
|
818
|
+
defaultView?: MapViewType;
|
|
796
819
|
}
|
|
797
820
|
declare class CameraManager {
|
|
798
821
|
#private;
|
|
799
822
|
map: Map;
|
|
800
|
-
constructor(map: Map,
|
|
801
|
-
set defaultBearing(value: number);
|
|
802
|
-
set defaultPitch(value: number);
|
|
803
|
-
set defaultCenter(value: [number, number]);
|
|
804
|
-
set defaultZoom(value: number);
|
|
805
|
-
get defaultCenter(): [number, number];
|
|
806
|
-
get defaultZoom(): number;
|
|
807
|
-
get defaultBearing(): number;
|
|
808
|
-
get defaultPitch(): number;
|
|
809
|
-
getBearing: () => number;
|
|
810
|
-
getPitch: () => number;
|
|
811
|
-
getZoom: () => number;
|
|
812
|
-
setBearing: (bearing: any) => Map;
|
|
823
|
+
constructor(map: Map, options?: CameraManagerOptions);
|
|
813
824
|
/** Public methods */
|
|
825
|
+
getView: () => MapViewType;
|
|
826
|
+
getZoom: () => number;
|
|
827
|
+
setView: (value: MapViewType) => void;
|
|
814
828
|
flyTo: (center: any, options?: MapAnimationOptionsType & MapViewType) => void;
|
|
815
829
|
flyToAndZoomIn: (centerPoint: any, options?: MapAnimationOptionsType & MapViewType) => void;
|
|
816
830
|
}
|
|
817
831
|
|
|
818
|
-
declare class IndoorMap {
|
|
832
|
+
declare class IndoorMap extends EventTarget {
|
|
819
833
|
#private;
|
|
820
834
|
map: Map | null;
|
|
821
|
-
|
|
835
|
+
camera: CameraManager;
|
|
822
836
|
rendererManager: RendererManager;
|
|
823
837
|
showVenueObject: boolean;
|
|
824
838
|
threeLayer: ThreeLayer | null;
|
|
@@ -834,14 +848,6 @@ declare class IndoorMap {
|
|
|
834
848
|
/**
|
|
835
849
|
* Getters & Setters
|
|
836
850
|
*/
|
|
837
|
-
set defaultBearing(value: number);
|
|
838
|
-
set defaultPitch(value: number);
|
|
839
|
-
set defaultCenter(value: [number, number]);
|
|
840
|
-
set defaultZoom(value: number);
|
|
841
|
-
get defaultBearing(): number;
|
|
842
|
-
get defaultPitch(): number;
|
|
843
|
-
get defaultCenter(): [number, number];
|
|
844
|
-
get defaultZoom(): number;
|
|
845
851
|
get elementsLoaded(): boolean;
|
|
846
852
|
get pixelRatio(): number;
|
|
847
853
|
get locale(): string;
|
|
@@ -1155,4 +1161,4 @@ declare const VENUE_EVENTS: {
|
|
|
1155
1161
|
VENUE_MOVEINTOVIEW: string;
|
|
1156
1162
|
};
|
|
1157
1163
|
|
|
1158
|
-
export { ALL_FEATURE_TYPES, ALWAYS_VISIBLE_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, BASE_LAYER_NAME, DEFAULT_BASE_URL, DEFAULT_HIGHLIGHT_OPTIONS, DEFAULT_LOCALE, DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS, DESTINATION_MARKER_ID, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, HIGHLIGHT_LAYER_NAME, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, IndoorMap, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, LAST_USER_LOCATION_ELEMENT_ID_PREFIX, LAYERS, LAYER_FEATURE_TYPE_OBJ, LAYER_OPTIONS, LOCALE_SYMBOL_KEY, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, MARKER_LAYER_NAME, type Media, type MediaFile, type Model3d, NONIMDF_FEATURE_TYPES, ORIGIN_MARKER_ID, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, type OccupantProperties, type OpeningFeature, type OpeningGeometry, type OpeningProperties, POI_MARKER_LAYER_NAME, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, USER_LOCATION_ELEMENT_ID, USER_LOCATION_LAYER_NAME, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, VENUE_EVENTS, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, createPolygonFromLineString, createSpriteMaterialByLabelSymbol, createStyledUIMarkerElement, defaultFeatureQueryOptionsMap, fetchFeature, getBearingBetweenPoints, getCenterFromGeometry, getDataClient, getExtrudeConfigByFeature, getFeatureByLocationId, getLocationByAmenity, getLocationByFeature, getLocationByOccupant, getLocationIdByFeature, getOrdinalByLocationId, getRelatedLocationIdsByFeature, getRelatedLocationsByAmenity, getRelatedLocationsByFeature, getRelatedLocationsByOccupant, getSuitablyValueBetweenBearings, isClickableFeature, safeFetchFeature, styledFeatureGenerator };
|
|
1164
|
+
export { ALL_FEATURE_TYPES, ALWAYS_VISIBLE_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, BASE_LAYER_NAME, DEFAULT_BASE_URL, DEFAULT_HIGHLIGHT_OPTIONS, DEFAULT_LOCALE, DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS, DESTINATION_MARKER_ID, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, HIGHLIGHT_LAYER_NAME, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, IndoorMap, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, LAST_USER_LOCATION_ELEMENT_ID_PREFIX, LAYERS, LAYER_FEATURE_TYPE_OBJ, LAYER_OPTIONS, LOCALE_SYMBOL_KEY, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, MARKER_LAYER_NAME, type Media, type MediaFile, type Model3d, NONIMDF_FEATURE_TYPES, ORIGIN_MARKER_ID, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, type OccupantProperties, type OpeningFeature, type OpeningGeometry, type OpeningProperties, POI_MARKER_LAYER_NAME, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, USER_LOCATION_ELEMENT_ID, USER_LOCATION_LAYER_NAME, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, VENUE_EVENTS, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, createPolygonFromLineString, createSpriteMaterialByLabelSymbol, createStyledUIMarkerElement, defaultFeatureQueryOptionsMap, fetchFeature, getBearingBetweenPoints, getCenterFromGeometry, getDataClient, getExtrudeConfigByFeature, getFeatureByLocationId, getLocationByAmenity, getLocationByFeature, getLocationByOccupant, getLocationIdByFeature, getOrdinalByLocationId, getRelatedLocationIdsByFeature, getRelatedLocationsByAmenity, getRelatedLocationsByFeature, getRelatedLocationsByOccupant, getSuitablyValueBetweenBearings, isClickableFeature, safeFetchFeature, styledFeatureGenerator };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export { QueryObserver } from '@tanstack/query-core';
|
|
|
3
3
|
import * as geojson from 'geojson';
|
|
4
4
|
import { Position, Geometry, GeoJsonProperties, Feature, Point, Polygon, MultiPolygon, LineString, GeometryCollection } from 'geojson';
|
|
5
5
|
import * as maptalks from 'maptalks';
|
|
6
|
-
import { Coordinate, Map,
|
|
7
|
-
import {
|
|
6
|
+
import { Coordinate, Map, MapViewType, MapAnimationOptionsType, HandlerFn, EventParams, MapPaddingType, Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
7
|
+
import { BaseObject, ThreeLayer } from 'maptalks.three';
|
|
8
8
|
import { ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
9
9
|
import { SpriteMaterial, AmbientLight, DirectionalLight } from 'three';
|
|
10
10
|
|
|
@@ -471,6 +471,22 @@ type AnchorFeaturePopulated = AnchorFeature & {
|
|
|
471
471
|
section?: SectionFeaturePopulated;
|
|
472
472
|
};
|
|
473
473
|
};
|
|
474
|
+
type FixtureFeaturePopulated = FixtureFeature & {
|
|
475
|
+
properties: FixtureFeature["properties"] & {
|
|
476
|
+
/**
|
|
477
|
+
* [IMDF] The unit this anchor is on.
|
|
478
|
+
*/
|
|
479
|
+
anchor: AnchorFeaturePopulated;
|
|
480
|
+
/**
|
|
481
|
+
* [IMDF] Level that kiosk is on
|
|
482
|
+
*/
|
|
483
|
+
level: LevelFeaturePopulated;
|
|
484
|
+
/**
|
|
485
|
+
* [IMDF] Venue that kiosk is in
|
|
486
|
+
*/
|
|
487
|
+
venue?: VenueFeaturePopulated;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
474
490
|
type KioskFeaturePopulated = KioskFeature & {
|
|
475
491
|
properties: KioskFeature["properties"] & {
|
|
476
492
|
/**
|
|
@@ -589,7 +605,7 @@ type FeaturePopulatedResponseMap = {
|
|
|
589
605
|
anchor: AnchorFeaturePopulated;
|
|
590
606
|
building: ImdfFeature;
|
|
591
607
|
detail: DetailFeature;
|
|
592
|
-
fixture:
|
|
608
|
+
fixture: FixtureFeaturePopulated;
|
|
593
609
|
footprint: ImdfFeature;
|
|
594
610
|
geofence: ImdfFeature;
|
|
595
611
|
kiosk: KioskFeaturePopulated;
|
|
@@ -639,6 +655,7 @@ interface VenueDataClient {
|
|
|
639
655
|
projectId: string;
|
|
640
656
|
queryClient: QueryClient;
|
|
641
657
|
registerObserver: (featureType: FeatureType, refetchInterval: number) => QueryObserver;
|
|
658
|
+
destroyObserver: (featureType: FeatureType) => void;
|
|
642
659
|
destroyObservers: () => void;
|
|
643
660
|
createFilterByTypeQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, params: FilterParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T][] | FeaturePopulatedResponseMap[T][]>;
|
|
644
661
|
createFindByIdQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, id: string, params: FindParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T] | FeaturePopulatedResponseMap[T]>;
|
|
@@ -675,8 +692,9 @@ type CreateExtrudePolygonOptionType = ExtrudePolygonOptionType & {
|
|
|
675
692
|
offset?: number;
|
|
676
693
|
};
|
|
677
694
|
type Element3DRendererOptions = {
|
|
678
|
-
|
|
695
|
+
fixture?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
679
696
|
kiosk?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
697
|
+
unit?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
680
698
|
};
|
|
681
699
|
/** RendererManager */
|
|
682
700
|
type RendererManagerOptions = {
|
|
@@ -687,8 +705,9 @@ type RendererManagerOptions = {
|
|
|
687
705
|
elements: Element3DRendererOptions;
|
|
688
706
|
};
|
|
689
707
|
|
|
690
|
-
declare class RendererManager {
|
|
708
|
+
declare class RendererManager extends EventTarget {
|
|
691
709
|
#private;
|
|
710
|
+
map: maptalks.Map;
|
|
692
711
|
options: RendererManagerOptions;
|
|
693
712
|
/** Elements: Responsible for converting feature info elements and add to map */
|
|
694
713
|
private elementRenderer;
|
|
@@ -696,19 +715,24 @@ declare class RendererManager {
|
|
|
696
715
|
private elementsByOrdinal;
|
|
697
716
|
constructor(map: maptalks.Map, options: RendererManagerOptions);
|
|
698
717
|
set dataClient(value: any);
|
|
718
|
+
getElementsByOrdinal: (ordinal: number) => (BaseObject | maptalks.Geometry | maptalks.ui.UIMarker)[];
|
|
699
719
|
changeLevelByOrdinal(targetOrdinal: null | number | number[]): void;
|
|
700
720
|
createMarker(coordinate: Position, ordinal: number, label: string): void;
|
|
701
721
|
}
|
|
702
722
|
|
|
703
723
|
interface IndoorMapOptions {
|
|
704
|
-
center?: [number, number];
|
|
705
|
-
defaultZoom?: number;
|
|
706
|
-
pixelRatio?: number;
|
|
707
|
-
locale?: string;
|
|
708
724
|
onMapReady?: () => void;
|
|
709
725
|
onMapLoading?: () => void;
|
|
710
726
|
dataClient: VenueDataClient;
|
|
727
|
+
camera?: {
|
|
728
|
+
defaultCenter?: [number, number];
|
|
729
|
+
defaultZoom?: number;
|
|
730
|
+
defaultBearing?: number;
|
|
731
|
+
defaultPitch?: number;
|
|
732
|
+
};
|
|
711
733
|
renderer?: RendererManagerOptions;
|
|
734
|
+
pixelRatio?: number;
|
|
735
|
+
locale?: string;
|
|
712
736
|
}
|
|
713
737
|
type AmenityHighlightMode = "2DMarker";
|
|
714
738
|
type SymbolSet = string | null;
|
|
@@ -791,34 +815,24 @@ interface IMapConfig {
|
|
|
791
815
|
}
|
|
792
816
|
|
|
793
817
|
interface CameraManagerOptions {
|
|
794
|
-
|
|
795
|
-
defaultZoom: number;
|
|
818
|
+
defaultView?: MapViewType;
|
|
796
819
|
}
|
|
797
820
|
declare class CameraManager {
|
|
798
821
|
#private;
|
|
799
822
|
map: Map;
|
|
800
|
-
constructor(map: Map,
|
|
801
|
-
set defaultBearing(value: number);
|
|
802
|
-
set defaultPitch(value: number);
|
|
803
|
-
set defaultCenter(value: [number, number]);
|
|
804
|
-
set defaultZoom(value: number);
|
|
805
|
-
get defaultCenter(): [number, number];
|
|
806
|
-
get defaultZoom(): number;
|
|
807
|
-
get defaultBearing(): number;
|
|
808
|
-
get defaultPitch(): number;
|
|
809
|
-
getBearing: () => number;
|
|
810
|
-
getPitch: () => number;
|
|
811
|
-
getZoom: () => number;
|
|
812
|
-
setBearing: (bearing: any) => Map;
|
|
823
|
+
constructor(map: Map, options?: CameraManagerOptions);
|
|
813
824
|
/** Public methods */
|
|
825
|
+
getView: () => MapViewType;
|
|
826
|
+
getZoom: () => number;
|
|
827
|
+
setView: (value: MapViewType) => void;
|
|
814
828
|
flyTo: (center: any, options?: MapAnimationOptionsType & MapViewType) => void;
|
|
815
829
|
flyToAndZoomIn: (centerPoint: any, options?: MapAnimationOptionsType & MapViewType) => void;
|
|
816
830
|
}
|
|
817
831
|
|
|
818
|
-
declare class IndoorMap {
|
|
832
|
+
declare class IndoorMap extends EventTarget {
|
|
819
833
|
#private;
|
|
820
834
|
map: Map | null;
|
|
821
|
-
|
|
835
|
+
camera: CameraManager;
|
|
822
836
|
rendererManager: RendererManager;
|
|
823
837
|
showVenueObject: boolean;
|
|
824
838
|
threeLayer: ThreeLayer | null;
|
|
@@ -834,14 +848,6 @@ declare class IndoorMap {
|
|
|
834
848
|
/**
|
|
835
849
|
* Getters & Setters
|
|
836
850
|
*/
|
|
837
|
-
set defaultBearing(value: number);
|
|
838
|
-
set defaultPitch(value: number);
|
|
839
|
-
set defaultCenter(value: [number, number]);
|
|
840
|
-
set defaultZoom(value: number);
|
|
841
|
-
get defaultBearing(): number;
|
|
842
|
-
get defaultPitch(): number;
|
|
843
|
-
get defaultCenter(): [number, number];
|
|
844
|
-
get defaultZoom(): number;
|
|
845
851
|
get elementsLoaded(): boolean;
|
|
846
852
|
get pixelRatio(): number;
|
|
847
853
|
get locale(): string;
|
|
@@ -1155,4 +1161,4 @@ declare const VENUE_EVENTS: {
|
|
|
1155
1161
|
VENUE_MOVEINTOVIEW: string;
|
|
1156
1162
|
};
|
|
1157
1163
|
|
|
1158
|
-
export { ALL_FEATURE_TYPES, ALWAYS_VISIBLE_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, BASE_LAYER_NAME, DEFAULT_BASE_URL, DEFAULT_HIGHLIGHT_OPTIONS, DEFAULT_LOCALE, DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS, DESTINATION_MARKER_ID, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, HIGHLIGHT_LAYER_NAME, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, IndoorMap, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, LAST_USER_LOCATION_ELEMENT_ID_PREFIX, LAYERS, LAYER_FEATURE_TYPE_OBJ, LAYER_OPTIONS, LOCALE_SYMBOL_KEY, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, MARKER_LAYER_NAME, type Media, type MediaFile, type Model3d, NONIMDF_FEATURE_TYPES, ORIGIN_MARKER_ID, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, type OccupantProperties, type OpeningFeature, type OpeningGeometry, type OpeningProperties, POI_MARKER_LAYER_NAME, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, USER_LOCATION_ELEMENT_ID, USER_LOCATION_LAYER_NAME, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, VENUE_EVENTS, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, createPolygonFromLineString, createSpriteMaterialByLabelSymbol, createStyledUIMarkerElement, defaultFeatureQueryOptionsMap, fetchFeature, getBearingBetweenPoints, getCenterFromGeometry, getDataClient, getExtrudeConfigByFeature, getFeatureByLocationId, getLocationByAmenity, getLocationByFeature, getLocationByOccupant, getLocationIdByFeature, getOrdinalByLocationId, getRelatedLocationIdsByFeature, getRelatedLocationsByAmenity, getRelatedLocationsByFeature, getRelatedLocationsByOccupant, getSuitablyValueBetweenBearings, isClickableFeature, safeFetchFeature, styledFeatureGenerator };
|
|
1164
|
+
export { ALL_FEATURE_TYPES, ALWAYS_VISIBLE_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, BASE_LAYER_NAME, DEFAULT_BASE_URL, DEFAULT_HIGHLIGHT_OPTIONS, DEFAULT_LOCALE, DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS, DESTINATION_MARKER_ID, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, HIGHLIGHT_LAYER_NAME, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, IndoorMap, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, LAST_USER_LOCATION_ELEMENT_ID_PREFIX, LAYERS, LAYER_FEATURE_TYPE_OBJ, LAYER_OPTIONS, LOCALE_SYMBOL_KEY, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, MARKER_LAYER_NAME, type Media, type MediaFile, type Model3d, NONIMDF_FEATURE_TYPES, ORIGIN_MARKER_ID, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, type OccupantProperties, type OpeningFeature, type OpeningGeometry, type OpeningProperties, POI_MARKER_LAYER_NAME, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, USER_LOCATION_ELEMENT_ID, USER_LOCATION_LAYER_NAME, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, VENUE_EVENTS, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, createPolygonFromLineString, createSpriteMaterialByLabelSymbol, createStyledUIMarkerElement, defaultFeatureQueryOptionsMap, fetchFeature, getBearingBetweenPoints, getCenterFromGeometry, getDataClient, getExtrudeConfigByFeature, getFeatureByLocationId, getLocationByAmenity, getLocationByFeature, getLocationByOccupant, getLocationIdByFeature, getOrdinalByLocationId, getRelatedLocationIdsByFeature, getRelatedLocationsByAmenity, getRelatedLocationsByFeature, getRelatedLocationsByOccupant, getSuitablyValueBetweenBearings, isClickableFeature, safeFetchFeature, styledFeatureGenerator };
|