@mapxus/mapxus-map-jp 8.2.0 → 8.4.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/es/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export declare enum PresetLanguage {
15
15
  ENGLISH = "en",
16
16
  CHINESE_SIMPLIFIED = "zh-Hans",
17
17
  CHINESE_TRADITIONAL = "zh-Hant",
18
+ CHINESE_TRADITIONAL_TW = "zh-Hant-TW",
18
19
  JAPANESE = "ja",
19
20
  KOREAN = "ko",
20
21
  FILIPINO = "fil",
@@ -31,10 +32,12 @@ export declare enum ThemeType {
31
32
  MAPXUS = "mapxus",
32
33
  LANDS_D = "landsD",
33
34
  COMMON = "common",
34
- MAPXUS_V2 = "mapxus_v2"
35
+ /** @deprecated MAPXUS_V2 will be removed soon, please use MAPXUS_DEFAULT instead. */
36
+ MAPXUS_V2 = "mapxus_v2",
37
+ MAPXUS_DEFAULT = "mapxus_default"
35
38
  }
36
39
  export declare enum AccessControlOrigin {
37
- Self = "self",
40
+ Access = "access_control",
38
41
  Map = "map"
39
42
  }
40
43
  export interface IBbox {
@@ -146,6 +149,18 @@ export interface ISelectedBuildingBorderStyle {
146
149
  lineColor?: string;
147
150
  lineOpacity?: number;
148
151
  }
152
+ export interface IPlatformIos {
153
+ sdkVersion: string;
154
+ identifier: string;
155
+ bundleId: string;
156
+ }
157
+ export interface IPlatformAndroid {
158
+ sdkVersion: string;
159
+ identifier: string;
160
+ sha1: string;
161
+ packageName: string;
162
+ }
163
+ export type TPlatform = IPlatformIos | IPlatformAndroid;
149
164
  export interface IMapOption {
150
165
  map: maplibregl$1.Map;
151
166
  appId: string;
@@ -175,6 +190,7 @@ export interface IMapOption {
175
190
  poiId?: string;
176
191
  outdoorMapShown?: boolean;
177
192
  theme?: ThemeType | string;
193
+ /** @deprecated 'collapseCopyright' will be removed soon. You'd not use it. */
178
194
  collapseCopyright?: boolean;
179
195
  selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
180
196
  floorSelectorStyle?: IFloorSelectorStyle;
@@ -202,6 +218,9 @@ export interface IMapOption {
202
218
  language?: PresetLanguage;
203
219
  /** @description Auto Select Building by panning building to map center, default is false. */
204
220
  autoSelectBuilding?: boolean;
221
+ transformRequest?: maplibregl$1.RequestTransformFunction | null;
222
+ mapxusLogoEnabled?: boolean;
223
+ platform?: TPlatform;
205
224
  }
206
225
  export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
207
226
  export interface IMarkerOptions {
@@ -737,6 +756,7 @@ export declare class Indoor extends EventEmitter {
737
756
  private _isNotCurrentFeature;
738
757
  private _setOutdoorVisibility;
739
758
  private _addCustomLevelFillLayer;
759
+ private _addBuildingMaskLayer;
740
760
  private _setBuildingLineOpacity;
741
761
  private _addBuildingHighlightLayer;
742
762
  private _filterBuildingHighlight;
@@ -766,9 +786,12 @@ export declare class BuildingFilterControl implements IControl {
766
786
  private _$listContainer;
767
787
  private _$buildingList;
768
788
  private _listHeight;
789
+ private _language;
769
790
  private _visible;
770
791
  private _position;
771
- constructor(map: Map$1, buildingSelectorEnabled?: boolean);
792
+ private _isMobileMode;
793
+ private _isListShown;
794
+ constructor(map: any, buildingSelectorEnabled?: boolean);
772
795
  onAdd(map: maplibregl$1.Map): HTMLElement;
773
796
  onRemove(): void;
774
797
  get position(): ControlPosition;
@@ -776,7 +799,7 @@ export declare class BuildingFilterControl implements IControl {
776
799
  getDefaultPosition(): ControlPosition;
777
800
  setVisibility(isVisible: boolean): void;
778
801
  changePosition(from: ControlPosition, to: ControlPosition, index?: number): void;
779
- private _loadData;
802
+ private _bindEvents;
780
803
  private _init;
781
804
  private _refresh;
782
805
  private _load;
@@ -788,10 +811,12 @@ export declare class BuildingFilterControl implements IControl {
788
811
  private _buildingNameCreate;
789
812
  private _toggleList;
790
813
  private _buildingNameClickEvent;
791
- private _buildingToggleListEvent;
814
+ private _bindMouseOnEvents;
815
+ private _bindMobileTouchEvents;
792
816
  private _$showLayout;
793
817
  private _$hideLayout;
794
818
  private _updateBuildingListLayout;
819
+ private _detectDeviceMode;
795
820
  }
796
821
  export interface IFloorSelectorOptions {
797
822
  style?: IFloorSelectorStyle;
@@ -925,6 +950,7 @@ declare class Map$1 {
925
950
  private _hiddenBuildings;
926
951
  private _debounceHTTPErrorHandler;
927
952
  private _debounceTilesFilter;
953
+ private _transformRequestHandler;
928
954
  isDestroyed: boolean;
929
955
  switchOutdoor: SwitchOutdoorHandler;
930
956
  switchBuilding: SwitchBuildingHandler;
@@ -937,6 +963,11 @@ declare class Map$1 {
937
963
  */
938
964
  renderComplete(callback: VoidFunction): void;
939
965
  destroyed(callback: VoidFunction): void;
966
+ /**
967
+ * For transforming the request parameters of style resources before the map makes a request. Should be called before map.renderComplete().
968
+ * @param handler {maplibregl.RequestTransformFunction}
969
+ */
970
+ setTransformRequest(handler: maplibregl$1.RequestTransformFunction): void;
940
971
  /**
941
972
  * @description Get map indoor instance.
942
973
  */
@@ -1376,7 +1407,7 @@ export declare class AccessControl extends EventEmitter {
1376
1407
  isClosed: boolean;
1377
1408
  private _timeoutId;
1378
1409
  private _isInitialized;
1379
- private readonly _initializationPromise;
1410
+ private _initializationPromise;
1380
1411
  private _tokenManager;
1381
1412
  private readonly _from;
1382
1413
  constructor(appId: string, secret: string, origin?: AccessControlOrigin);
@@ -1390,6 +1421,10 @@ export declare class AccessControl extends EventEmitter {
1390
1421
  * Destroy the access_control instance, stop updating token.
1391
1422
  */
1392
1423
  close(): void;
1424
+ /**
1425
+ * For machine sleep for a long time, timer doesn't work, the token may be expired, so you can force update the token.
1426
+ */
1427
+ forceUpdateToken(): void;
1393
1428
  private _initToken;
1394
1429
  private _loopUpdateToken;
1395
1430
  }
@@ -1555,6 +1590,7 @@ export declare const PAGE: number;
1555
1590
  */
1556
1591
  export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
1557
1592
  export declare function getIdentifier(): Promise<string>;
1593
+ export declare const VERSION: string;
1558
1594
 
1559
1595
  export {
1560
1596
  Map$1 as Map,