bigmap-plugin 1.0.3 → 1.0.4
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/LICENSE +21 -21
- package/README.md +1392 -1392
- package/dist/bigmap-plugin.js +124 -119
- package/dist/bigmap-plugin.umd.cjs +34 -34
- package/dist/index.d.ts +22 -11
- package/dist/libs/bigemap/bigemap.css +838 -1
- package/dist/libs/bigemap/bm.geometryutil.js +754 -1
- package/dist/libs/bigemap/bmgl-header.js +110 -2
- package/dist/libs/bigemap/circleWave.js +284 -34
- package/dist/libs/bigemap/moveMarker.js +74 -1
- package/dist/libs/bigemap/widgets.css +1 -1
- package/package.json +66 -66
- package/dist/libs/bigemap/bigemap-gl.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1345,7 +1345,7 @@ export declare const logger: {
|
|
|
1345
1345
|
export declare type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent';
|
|
1346
1346
|
|
|
1347
1347
|
/** MapView 从 MapConfig 消费的字段清单(单一来源:MapViewProps 类型与组件 config 映射均由此派生) */
|
|
1348
|
-
declare const MAP_VIEW_CONFIG_KEYS: readonly ["containerId", "position", "serverUrl", "libsUrl", "showSearch", "showControls", "showDeleteControls", "showStatus", "tools", "searchDebounceTime", "wmtsUrlProvider", "geoserver", "contourConfig", "lightingConfig"];
|
|
1348
|
+
declare const MAP_VIEW_CONFIG_KEYS: readonly ["containerId", "position", "serverUrl", "accessToken", "libsUrl", "showSearch", "showControls", "showDeleteControls", "showStatus", "tools", "searchDebounceTime", "wmtsUrlProvider", "geoserver", "contourConfig", "lightingConfig"];
|
|
1349
1349
|
|
|
1350
1350
|
/** 地图实例 API(MapContainer/MapView 组件 expose 的完整能力集) */
|
|
1351
1351
|
export declare interface MapApi {
|
|
@@ -1444,6 +1444,8 @@ export declare interface MapConfig {
|
|
|
1444
1444
|
containerId?: string;
|
|
1445
1445
|
/** 地图资源/瓦片服务器地址(由使用方传入,用于加载地图库与瓦片数据) */
|
|
1446
1446
|
serverUrl?: string;
|
|
1447
|
+
/** 地图服务 accessToken 鉴权令牌(可选):配置后设置 bmgl.Config.accessToken 并把 token 作为查询参数拼接到 HTTP_URL 后 */
|
|
1448
|
+
accessToken?: string;
|
|
1447
1449
|
/** 库文件地址 */
|
|
1448
1450
|
libsUrl?: string;
|
|
1449
1451
|
/** 地图类型 */
|
|
@@ -1509,6 +1511,10 @@ serverUrl: {
|
|
|
1509
1511
|
type: PropType<string | undefined>;
|
|
1510
1512
|
default: undefined;
|
|
1511
1513
|
};
|
|
1514
|
+
accessToken: {
|
|
1515
|
+
type: PropType<string | undefined>;
|
|
1516
|
+
default: undefined;
|
|
1517
|
+
};
|
|
1512
1518
|
libsUrl: {
|
|
1513
1519
|
type: PropType<string | undefined>;
|
|
1514
1520
|
default: undefined;
|
|
@@ -1586,6 +1592,10 @@ serverUrl: {
|
|
|
1586
1592
|
type: PropType<string | undefined>;
|
|
1587
1593
|
default: undefined;
|
|
1588
1594
|
};
|
|
1595
|
+
accessToken: {
|
|
1596
|
+
type: PropType<string | undefined>;
|
|
1597
|
+
default: undefined;
|
|
1598
|
+
};
|
|
1589
1599
|
libsUrl: {
|
|
1590
1600
|
type: PropType<string | undefined>;
|
|
1591
1601
|
default: undefined;
|
|
@@ -1650,6 +1660,7 @@ position: Position | undefined;
|
|
|
1650
1660
|
config: Partial<MapConfig>;
|
|
1651
1661
|
containerId: string | undefined;
|
|
1652
1662
|
serverUrl: string | undefined;
|
|
1663
|
+
accessToken: string | undefined;
|
|
1653
1664
|
libsUrl: string | undefined;
|
|
1654
1665
|
showSearch: boolean | undefined;
|
|
1655
1666
|
showControls: boolean | undefined;
|
|
@@ -1845,16 +1856,16 @@ export declare interface MapErrorProps {
|
|
|
1845
1856
|
|
|
1846
1857
|
/** 地图事件类型 */
|
|
1847
1858
|
export declare interface MapEvents {
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1859
|
+
"map:ready": void;
|
|
1860
|
+
"map:click": MousePosition;
|
|
1861
|
+
"map:move": MousePosition;
|
|
1862
|
+
"map:camera-changed": CameraPosition;
|
|
1863
|
+
"map:zoom-end": {
|
|
1853
1864
|
zoom: number;
|
|
1854
1865
|
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1866
|
+
"map:mode-changed": MapType;
|
|
1867
|
+
"map:bounds-changed": Bounds;
|
|
1868
|
+
"map:error": Error;
|
|
1858
1869
|
}
|
|
1859
1870
|
|
|
1860
1871
|
/** 地图实例入参(支持 Ref 或直接实例) */
|
|
@@ -1906,7 +1917,7 @@ export declare class MapManager {
|
|
|
1906
1917
|
export declare const mapManager: MapManager;
|
|
1907
1918
|
|
|
1908
1919
|
/** 地图模式 */
|
|
1909
|
-
export declare type MapMode =
|
|
1920
|
+
export declare type MapMode = "normal" | "satellite" | "terrain";
|
|
1910
1921
|
|
|
1911
1922
|
/** 地图状态 */
|
|
1912
1923
|
export declare interface MapState {
|
|
@@ -2084,7 +2095,7 @@ export declare interface MapToolsProps {
|
|
|
2084
2095
|
}
|
|
2085
2096
|
|
|
2086
2097
|
/** 地图类型 */
|
|
2087
|
-
export declare type MapType =
|
|
2098
|
+
export declare type MapType = "2d" | "3d";
|
|
2088
2099
|
|
|
2089
2100
|
/** MapView 组件 */
|
|
2090
2101
|
export declare const MapView: DefineComponent<ExtractPropTypes< {
|