@mapxus/mapxus-map-jp 8.4.0 → 8.5.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.css +23 -6
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.LICENSE.txt +14 -0
- package/es/index.d.ts +68 -19
- package/es/index.mjs +2 -1
- package/es/index.mjs.LICENSE.txt +14 -0
- package/es/utils/index.mjs +2 -1
- package/es/utils/index.mjs.LICENSE.txt +14 -0
- package/lib/index.cjs +2 -1
- package/lib/index.cjs.LICENSE.txt +14 -0
- package/lib/utils/index.cjs +2 -1
- package/lib/utils/index.cjs.LICENSE.txt +14 -0
- package/package.json +13 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
+
|
|
10
|
+
/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
|
|
11
|
+
|
|
12
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
+
|
|
14
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
package/es/index.d.ts
CHANGED
|
@@ -149,22 +149,20 @@ export interface ISelectedBuildingBorderStyle {
|
|
|
149
149
|
lineColor?: string;
|
|
150
150
|
lineOpacity?: number;
|
|
151
151
|
}
|
|
152
|
-
export interface
|
|
152
|
+
export interface IPlatformCommon {
|
|
153
153
|
sdkVersion: string;
|
|
154
154
|
identifier: string;
|
|
155
|
+
}
|
|
156
|
+
export interface IPlatformIos extends IPlatformCommon {
|
|
155
157
|
bundleId: string;
|
|
156
158
|
}
|
|
157
|
-
export interface IPlatformAndroid {
|
|
158
|
-
sdkVersion: string;
|
|
159
|
-
identifier: string;
|
|
159
|
+
export interface IPlatformAndroid extends IPlatformCommon {
|
|
160
160
|
sha1: string;
|
|
161
161
|
packageName: string;
|
|
162
162
|
}
|
|
163
163
|
export type TPlatform = IPlatformIos | IPlatformAndroid;
|
|
164
|
-
export interface
|
|
164
|
+
export interface IMapOtherOptions {
|
|
165
165
|
map: maplibregl$1.Map;
|
|
166
|
-
appId: string;
|
|
167
|
-
secret: string;
|
|
168
166
|
floorSelectorEnabled?: boolean;
|
|
169
167
|
buildingSelectorEnabled?: boolean;
|
|
170
168
|
/**
|
|
@@ -220,8 +218,29 @@ export interface IMapOption {
|
|
|
220
218
|
autoSelectBuilding?: boolean;
|
|
221
219
|
transformRequest?: maplibregl$1.RequestTransformFunction | null;
|
|
222
220
|
mapxusLogoEnabled?: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface IMapAccessWithAppId {
|
|
223
|
+
appId: string;
|
|
224
|
+
secret: string;
|
|
225
|
+
/**
|
|
226
|
+
* get accessToken of the specific platform(ios or android), optional, default is web
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
223
229
|
platform?: TPlatform;
|
|
224
230
|
}
|
|
231
|
+
export interface ITokenResponse {
|
|
232
|
+
accessToken: string;
|
|
233
|
+
/** timestamp */
|
|
234
|
+
expiredTime: number;
|
|
235
|
+
identifier?: string;
|
|
236
|
+
sdkVersion?: string;
|
|
237
|
+
}
|
|
238
|
+
export type TAccessTokenGetter = () => Promise<ITokenResponse>;
|
|
239
|
+
export interface IMapAccessWithToken {
|
|
240
|
+
getTokenAsync: TAccessTokenGetter;
|
|
241
|
+
}
|
|
242
|
+
export type TMapKeys = IMapAccessWithAppId | IMapAccessWithToken;
|
|
243
|
+
export type IMapOption = IMapOtherOptions & TMapKeys;
|
|
225
244
|
export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
226
245
|
export interface IMarkerOptions {
|
|
227
246
|
lngLat: [
|
|
@@ -610,7 +629,7 @@ export interface IVenueSearchCustomizedOptions extends IBuildingSearchCustomized
|
|
|
610
629
|
export declare class Indoor extends EventEmitter {
|
|
611
630
|
private _map;
|
|
612
631
|
private _features;
|
|
613
|
-
private
|
|
632
|
+
private _allBuildingsMap;
|
|
614
633
|
private _curBuildingId;
|
|
615
634
|
private _curBuildingFeature;
|
|
616
635
|
private _ordinal;
|
|
@@ -630,7 +649,6 @@ export declare class Indoor extends EventEmitter {
|
|
|
630
649
|
private readonly _fitBuildingBounds;
|
|
631
650
|
private readonly _boundsPadding;
|
|
632
651
|
private readonly _startWithIndoorView;
|
|
633
|
-
private _maplibreMapLoaded;
|
|
634
652
|
private _indoorMapLoaded;
|
|
635
653
|
private readonly _isVenueMode;
|
|
636
654
|
private readonly _isMaskMode;
|
|
@@ -748,8 +766,7 @@ export declare class Indoor extends EventEmitter {
|
|
|
748
766
|
]
|
|
749
767
|
]): void;
|
|
750
768
|
selectBuildingByClickMap(point: PointLike): Promise<void>;
|
|
751
|
-
private
|
|
752
|
-
private _init;
|
|
769
|
+
private _bindMaplibreEventListeners;
|
|
753
770
|
private _clear;
|
|
754
771
|
private _getIndoorFeatures;
|
|
755
772
|
private _getBuildingFloorByOrdinal;
|
|
@@ -766,6 +783,7 @@ export declare class Indoor extends EventEmitter {
|
|
|
766
783
|
private _getBuildingsOfBbox;
|
|
767
784
|
private _copyOverlapLayers;
|
|
768
785
|
private _updateFeatures;
|
|
786
|
+
private _updateSelectedFeatures;
|
|
769
787
|
private _layerDisplayedBuildings;
|
|
770
788
|
private _setDisplayedLevels;
|
|
771
789
|
private _filterTiles;
|
|
@@ -776,6 +794,7 @@ export declare class Indoor extends EventEmitter {
|
|
|
776
794
|
private _checkAndPanToBuilding;
|
|
777
795
|
private _invisibleSelectedBuilding;
|
|
778
796
|
private _clearTimers;
|
|
797
|
+
private _queryRenderedFeatures;
|
|
779
798
|
}
|
|
780
799
|
export declare class BuildingFilterControl implements IControl {
|
|
781
800
|
private _map;
|
|
@@ -935,22 +954,23 @@ export declare class SwitchOutdoorHandler {
|
|
|
935
954
|
get isEnabled(): boolean;
|
|
936
955
|
}
|
|
937
956
|
declare class Map$1 {
|
|
938
|
-
private _appId;
|
|
939
957
|
private _map;
|
|
940
958
|
private _indoor;
|
|
941
959
|
private _poi;
|
|
942
960
|
private _floorsControl;
|
|
943
961
|
private _buildingFilterControl;
|
|
944
962
|
private _attributionControl;
|
|
945
|
-
private _initialHiddenLayers;
|
|
946
963
|
private _language;
|
|
947
964
|
private _dispatch;
|
|
948
965
|
private _fitBuildingBounds;
|
|
949
966
|
private _history;
|
|
950
967
|
private _hiddenBuildings;
|
|
951
968
|
private _debounceHTTPErrorHandler;
|
|
952
|
-
private _debounceTilesFilter;
|
|
953
969
|
private _transformRequestHandler;
|
|
970
|
+
private _tokenRefreshingPromise;
|
|
971
|
+
private _request;
|
|
972
|
+
private _$mask;
|
|
973
|
+
private _cancelTokenChangedListener;
|
|
954
974
|
isDestroyed: boolean;
|
|
955
975
|
switchOutdoor: SwitchOutdoorHandler;
|
|
956
976
|
switchBuilding: SwitchBuildingHandler;
|
|
@@ -1015,9 +1035,9 @@ declare class Map$1 {
|
|
|
1015
1035
|
lng: number;
|
|
1016
1036
|
lat: number;
|
|
1017
1037
|
}, ordinal?: number): {
|
|
1018
|
-
venue: MapGeoJSONFeature;
|
|
1019
|
-
building: MapGeoJSONFeature;
|
|
1020
|
-
level: MapGeoJSONFeature;
|
|
1038
|
+
venue: MapGeoJSONFeature | null;
|
|
1039
|
+
building: MapGeoJSONFeature | null;
|
|
1040
|
+
level: MapGeoJSONFeature | null;
|
|
1021
1041
|
};
|
|
1022
1042
|
/**
|
|
1023
1043
|
* @description Query rendered features from bbox by id. One id may correspond to multiple features,
|
|
@@ -1098,6 +1118,7 @@ declare class Map$1 {
|
|
|
1098
1118
|
* @param style {ISelectedBuildingBorderStyle | null}
|
|
1099
1119
|
*/
|
|
1100
1120
|
setSelectedBuildingBorderStyle(style: ISelectedBuildingBorderStyle | null): this;
|
|
1121
|
+
private _setup;
|
|
1101
1122
|
private _getStyleUrl;
|
|
1102
1123
|
private _setIndoorFilter;
|
|
1103
1124
|
private _setStyle;
|
|
@@ -1105,8 +1126,6 @@ declare class Map$1 {
|
|
|
1105
1126
|
private _selectPoiById;
|
|
1106
1127
|
private _resourceRequestTransform;
|
|
1107
1128
|
private _checkMapZoom;
|
|
1108
|
-
private _hideIndoorLayers;
|
|
1109
|
-
private _showIndoorLayers;
|
|
1110
1129
|
private _updatePermission;
|
|
1111
1130
|
private _selectCenterBuilding;
|
|
1112
1131
|
/**
|
|
@@ -1114,6 +1133,10 @@ declare class Map$1 {
|
|
|
1114
1133
|
* @returns Map<buildingId, buildingFeature>
|
|
1115
1134
|
*/
|
|
1116
1135
|
private _getCenterBuildingsMap;
|
|
1136
|
+
private _bindMapClickListener;
|
|
1137
|
+
private _bindTokenChangedListener;
|
|
1138
|
+
private _handleSearchError;
|
|
1139
|
+
private _setMaskEnabled;
|
|
1117
1140
|
private _destroy;
|
|
1118
1141
|
}
|
|
1119
1142
|
export declare class Marker {
|
|
@@ -1589,7 +1612,33 @@ export declare const PAGE: number;
|
|
|
1589
1612
|
* @param language {string} window.navigator.language
|
|
1590
1613
|
*/
|
|
1591
1614
|
export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
|
|
1615
|
+
/**
|
|
1616
|
+
* Get access token
|
|
1617
|
+
* @param appId
|
|
1618
|
+
* @param secret
|
|
1619
|
+
* @param platform get accessToken of the specific platform(ios or android), optional
|
|
1620
|
+
* @param origin the reference of appId, optional
|
|
1621
|
+
* @returns {accessToken: string; expiresIn: number;} expiresIn means the valid time of accessToken
|
|
1622
|
+
*/
|
|
1623
|
+
export declare function getAccessToken(appId: string, secret: string, platform?: TPlatform, origin?: string): Promise<{
|
|
1624
|
+
accessToken: string;
|
|
1625
|
+
expiredTime: number;
|
|
1626
|
+
}>;
|
|
1592
1627
|
export declare function getIdentifier(): Promise<string>;
|
|
1628
|
+
export declare function setGetTokenAsync(fn: TAccessTokenGetter): void;
|
|
1629
|
+
export declare function setupTokenManager(): Promise<void>;
|
|
1630
|
+
export type InputProduct = "UI_SDK" | "ANYWHERE";
|
|
1631
|
+
/**
|
|
1632
|
+
* @private
|
|
1633
|
+
* This method is internal and should not be exposed in the documentation.
|
|
1634
|
+
*/
|
|
1635
|
+
export declare const __internal: {
|
|
1636
|
+
[x: symbol]: (names: InputProduct[]) => void;
|
|
1637
|
+
};
|
|
1638
|
+
export declare const ERRORS: readonly [
|
|
1639
|
+
"unauthorized",
|
|
1640
|
+
"initError"
|
|
1641
|
+
];
|
|
1593
1642
|
export declare const VERSION: string;
|
|
1594
1643
|
|
|
1595
1644
|
export {
|