@mapxus/mapxus-map-jp 8.1.0 → 8.3.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.umd.js +1 -1
- package/es/index.d.ts +18 -3
- package/es/index.mjs +1 -1
- package/es/utils/index.mjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -31,7 +31,9 @@ export declare enum ThemeType {
|
|
|
31
31
|
MAPXUS = "mapxus",
|
|
32
32
|
LANDS_D = "landsD",
|
|
33
33
|
COMMON = "common",
|
|
34
|
-
MAPXUS_V2
|
|
34
|
+
/** @deprecated MAPXUS_V2 will be removed soon, please use MAPXUS_DEFAULT instead. */
|
|
35
|
+
MAPXUS_V2 = "mapxus_v2",
|
|
36
|
+
MAPXUS_DEFAULT = "mapxus_default"
|
|
35
37
|
}
|
|
36
38
|
export declare enum AccessControlOrigin {
|
|
37
39
|
Self = "self",
|
|
@@ -175,6 +177,7 @@ export interface IMapOption {
|
|
|
175
177
|
poiId?: string;
|
|
176
178
|
outdoorMapShown?: boolean;
|
|
177
179
|
theme?: ThemeType | string;
|
|
180
|
+
/** @deprecated 'collapseCopyright' will be removed soon. You'd not use it. */
|
|
178
181
|
collapseCopyright?: boolean;
|
|
179
182
|
selectedBuildingBorderStyle?: ISelectedBuildingBorderStyle;
|
|
180
183
|
floorSelectorStyle?: IFloorSelectorStyle;
|
|
@@ -202,6 +205,8 @@ export interface IMapOption {
|
|
|
202
205
|
language?: PresetLanguage;
|
|
203
206
|
/** @description Auto Select Building by panning building to map center, default is false. */
|
|
204
207
|
autoSelectBuilding?: boolean;
|
|
208
|
+
transformRequest?: maplibregl$1.RequestTransformFunction | null;
|
|
209
|
+
mapxusLogoEnabled?: boolean;
|
|
205
210
|
}
|
|
206
211
|
export type TAnchorPosition = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
207
212
|
export interface IMarkerOptions {
|
|
@@ -925,6 +930,7 @@ declare class Map$1 {
|
|
|
925
930
|
private _hiddenBuildings;
|
|
926
931
|
private _debounceHTTPErrorHandler;
|
|
927
932
|
private _debounceTilesFilter;
|
|
933
|
+
private _transformRequestHandler;
|
|
928
934
|
isDestroyed: boolean;
|
|
929
935
|
switchOutdoor: SwitchOutdoorHandler;
|
|
930
936
|
switchBuilding: SwitchBuildingHandler;
|
|
@@ -937,6 +943,11 @@ declare class Map$1 {
|
|
|
937
943
|
*/
|
|
938
944
|
renderComplete(callback: VoidFunction): void;
|
|
939
945
|
destroyed(callback: VoidFunction): void;
|
|
946
|
+
/**
|
|
947
|
+
* For transforming the request parameters of style resources before the map makes a request. Should be called before map.renderComplete().
|
|
948
|
+
* @param handler {maplibregl.RequestTransformFunction}
|
|
949
|
+
*/
|
|
950
|
+
setTransformRequest(handler: maplibregl$1.RequestTransformFunction): void;
|
|
940
951
|
/**
|
|
941
952
|
* @description Get map indoor instance.
|
|
942
953
|
*/
|
|
@@ -1237,7 +1248,10 @@ export interface IRouteStyle<T> {
|
|
|
1237
1248
|
lineWidth?: number | ExpressionSpecification;
|
|
1238
1249
|
dashedLineWidth?: number | ExpressionSpecification;
|
|
1239
1250
|
disableDashedLine?: boolean;
|
|
1240
|
-
|
|
1251
|
+
/** Optional number in range [0, 1]. Defaults to 0.5. "inactiveRouteOpacity" will be 1 if the parameter is greater than 1, and it will be 0 if the parameter is less than 0. */
|
|
1252
|
+
inactiveRouteOpacity?: number;
|
|
1253
|
+
/** Optional number in range [0, 1]. Defaults to 1. "outdoorLineOpacity" will be 1 if the parameter is greater than 1, and it will be 0 if the parameter is less than 0. */
|
|
1254
|
+
outdoorLineOpacity?: number;
|
|
1241
1255
|
markers?: T;
|
|
1242
1256
|
markerIconSize?: number | ExpressionSpecification;
|
|
1243
1257
|
lineSymbol?: {
|
|
@@ -1352,7 +1366,7 @@ export declare class RoutePainter {
|
|
|
1352
1366
|
private _renderMarkers;
|
|
1353
1367
|
private _addCollectionSource;
|
|
1354
1368
|
private _addLineLayer;
|
|
1355
|
-
private
|
|
1369
|
+
private _renderLineSymbols;
|
|
1356
1370
|
private _addIconLayer;
|
|
1357
1371
|
private _updateStyleProperties;
|
|
1358
1372
|
private _loadMarkerIcons;
|
|
@@ -1552,6 +1566,7 @@ export declare const PAGE: number;
|
|
|
1552
1566
|
*/
|
|
1553
1567
|
export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
|
|
1554
1568
|
export declare function getIdentifier(): Promise<string>;
|
|
1569
|
+
export declare const VERSION: string;
|
|
1555
1570
|
|
|
1556
1571
|
export {
|
|
1557
1572
|
Map$1 as Map,
|