bigmap-plugin 1.0.3 → 1.0.5
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 +1394 -1390
- package/dist/bigmap-plugin.js +635 -615
- package/dist/bigmap-plugin.umd.cjs +39 -39
- package/dist/index.d.ts +54 -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", "mapId", "terrainId", "baseLayers", "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
|
/** 地图类型 */
|
|
@@ -1454,6 +1456,11 @@ export declare interface MapConfig {
|
|
|
1454
1456
|
mapId?: string;
|
|
1455
1457
|
/** 地形ID */
|
|
1456
1458
|
terrainId?: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* 底图图层 mapId 列表(按数组顺序自下而上叠加)。
|
|
1461
|
+
* 传入则按传入值加载(配置优先);未传入时回退默认底图(卫星影像 + 街道地名)。
|
|
1462
|
+
*/
|
|
1463
|
+
baseLayers?: string[];
|
|
1457
1464
|
/** 是否显示加载动画 */
|
|
1458
1465
|
showLoading?: boolean;
|
|
1459
1466
|
/** 是否显示顶部搜索组件 */
|
|
@@ -1509,10 +1516,26 @@ serverUrl: {
|
|
|
1509
1516
|
type: PropType<string | undefined>;
|
|
1510
1517
|
default: undefined;
|
|
1511
1518
|
};
|
|
1519
|
+
accessToken: {
|
|
1520
|
+
type: PropType<string | undefined>;
|
|
1521
|
+
default: undefined;
|
|
1522
|
+
};
|
|
1512
1523
|
libsUrl: {
|
|
1513
1524
|
type: PropType<string | undefined>;
|
|
1514
1525
|
default: undefined;
|
|
1515
1526
|
};
|
|
1527
|
+
mapId: {
|
|
1528
|
+
type: PropType<string | undefined>;
|
|
1529
|
+
default: undefined;
|
|
1530
|
+
};
|
|
1531
|
+
terrainId: {
|
|
1532
|
+
type: PropType<string | undefined>;
|
|
1533
|
+
default: undefined;
|
|
1534
|
+
};
|
|
1535
|
+
baseLayers: {
|
|
1536
|
+
type: PropType<string[] | undefined>;
|
|
1537
|
+
default: undefined;
|
|
1538
|
+
};
|
|
1516
1539
|
showSearch: {
|
|
1517
1540
|
type: PropType<boolean | undefined>;
|
|
1518
1541
|
default: undefined;
|
|
@@ -1586,10 +1609,26 @@ serverUrl: {
|
|
|
1586
1609
|
type: PropType<string | undefined>;
|
|
1587
1610
|
default: undefined;
|
|
1588
1611
|
};
|
|
1612
|
+
accessToken: {
|
|
1613
|
+
type: PropType<string | undefined>;
|
|
1614
|
+
default: undefined;
|
|
1615
|
+
};
|
|
1589
1616
|
libsUrl: {
|
|
1590
1617
|
type: PropType<string | undefined>;
|
|
1591
1618
|
default: undefined;
|
|
1592
1619
|
};
|
|
1620
|
+
mapId: {
|
|
1621
|
+
type: PropType<string | undefined>;
|
|
1622
|
+
default: undefined;
|
|
1623
|
+
};
|
|
1624
|
+
terrainId: {
|
|
1625
|
+
type: PropType<string | undefined>;
|
|
1626
|
+
default: undefined;
|
|
1627
|
+
};
|
|
1628
|
+
baseLayers: {
|
|
1629
|
+
type: PropType<string[] | undefined>;
|
|
1630
|
+
default: undefined;
|
|
1631
|
+
};
|
|
1593
1632
|
showSearch: {
|
|
1594
1633
|
type: PropType<boolean | undefined>;
|
|
1595
1634
|
default: undefined;
|
|
@@ -1650,7 +1689,11 @@ position: Position | undefined;
|
|
|
1650
1689
|
config: Partial<MapConfig>;
|
|
1651
1690
|
containerId: string | undefined;
|
|
1652
1691
|
serverUrl: string | undefined;
|
|
1692
|
+
accessToken: string | undefined;
|
|
1653
1693
|
libsUrl: string | undefined;
|
|
1694
|
+
mapId: string | undefined;
|
|
1695
|
+
terrainId: string | undefined;
|
|
1696
|
+
baseLayers: string[] | undefined;
|
|
1654
1697
|
showSearch: boolean | undefined;
|
|
1655
1698
|
showControls: boolean | undefined;
|
|
1656
1699
|
showDeleteControls: boolean | undefined;
|
|
@@ -1845,16 +1888,16 @@ export declare interface MapErrorProps {
|
|
|
1845
1888
|
|
|
1846
1889
|
/** 地图事件类型 */
|
|
1847
1890
|
export declare interface MapEvents {
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1891
|
+
"map:ready": void;
|
|
1892
|
+
"map:click": MousePosition;
|
|
1893
|
+
"map:move": MousePosition;
|
|
1894
|
+
"map:camera-changed": CameraPosition;
|
|
1895
|
+
"map:zoom-end": {
|
|
1853
1896
|
zoom: number;
|
|
1854
1897
|
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1898
|
+
"map:mode-changed": MapType;
|
|
1899
|
+
"map:bounds-changed": Bounds;
|
|
1900
|
+
"map:error": Error;
|
|
1858
1901
|
}
|
|
1859
1902
|
|
|
1860
1903
|
/** 地图实例入参(支持 Ref 或直接实例) */
|
|
@@ -1906,7 +1949,7 @@ export declare class MapManager {
|
|
|
1906
1949
|
export declare const mapManager: MapManager;
|
|
1907
1950
|
|
|
1908
1951
|
/** 地图模式 */
|
|
1909
|
-
export declare type MapMode =
|
|
1952
|
+
export declare type MapMode = "normal" | "satellite" | "terrain";
|
|
1910
1953
|
|
|
1911
1954
|
/** 地图状态 */
|
|
1912
1955
|
export declare interface MapState {
|
|
@@ -2084,7 +2127,7 @@ export declare interface MapToolsProps {
|
|
|
2084
2127
|
}
|
|
2085
2128
|
|
|
2086
2129
|
/** 地图类型 */
|
|
2087
|
-
export declare type MapType =
|
|
2130
|
+
export declare type MapType = "2d" | "3d";
|
|
2088
2131
|
|
|
2089
2132
|
/** MapView 组件 */
|
|
2090
2133
|
export declare const MapView: DefineComponent<ExtractPropTypes< {
|