mirage2d 1.2.1 → 1.2.3
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/Enum/typeEnum.d.ts +63 -56
- package/dist/Layer/XMap.d.ts +146 -108
- package/dist/Layer/graphicLayer/ArcGisFeatureServiceLayer.d.ts +19 -2
- package/dist/Layer/graphicLayer/ClusterImageLayer.d.ts +9 -0
- package/dist/Layer/graphicLayer/ClusterLayer.d.ts +7 -0
- package/dist/Layer/graphicLayer/DayNightLayer.d.ts +7 -0
- package/dist/Layer/graphicLayer/DivLayer.d.ts +7 -0
- package/dist/Layer/graphicLayer/GraphicImageLayer.d.ts +7 -0
- package/dist/Layer/graphicLayer/GraphicLayer.d.ts +2 -2
- package/dist/Layer/graphicLayer/HeatmapLayer.d.ts +7 -0
- package/dist/Layer/graphicLayer/ImageCanvasLayer.d.ts +1 -1
- package/dist/Layer/graphicLayer/KmlLayer.d.ts +7 -0
- package/dist/Layer/graphicLayer/PathLayer.d.ts +44 -41
- package/dist/Layer/graphicLayer/WfsLayer.d.ts +61 -5
- package/dist/Layer/index.d.ts +10 -0
- package/dist/Layer/tileLayer/ArcGisMapServerLayer.d.ts +2 -1
- package/dist/Layer/tileLayer/ArcGisTileXyzLayer.d.ts +3 -3
- package/dist/Layer/tileLayer/GeoImageLayer.d.ts +17 -9
- package/dist/Layer/tileLayer/PbfLayer.d.ts +1 -1
- package/dist/Layer/tileLayer/TifLayer.d.ts +7 -0
- package/dist/Layer/tileLayer/TileBaiDuLayer.d.ts +3 -3
- package/dist/Layer/tileLayer/TileGroupLayer.d.ts +13 -2
- package/dist/Layer/tileLayer/TileTencentLayer.d.ts +10 -3
- package/dist/Layer/tileLayer/TileXyzLayer.d.ts +11 -4
- package/dist/Layer/tileLayer/WmsLayer.d.ts +8 -0
- package/dist/Layer/tileLayer/WmtsLayer.d.ts +8 -0
- package/dist/Layer/tileLayer/imageLayer.d.ts +7 -0
- package/dist/MirageHttp.es.js.map +205 -1
- package/dist/MirageHttp.umd.js.map +1263 -1
- package/dist/Tools/SpatialAnalysis.d.ts +237 -216
- package/dist/Tools/defaultStyle.d.ts +7 -0
- package/dist/Tools/measure.d.ts +7 -0
- package/dist/Tools/secret.d.ts +12 -6
- package/dist/Tools/toolbox.d.ts +2 -3
- package/dist/Tools/util/format.d.ts +21 -1
- package/dist/Tools/util/index.d.ts +10 -0
- package/dist/Tools/util/isutil.d.ts +27 -17
- package/dist/Tools/util/tools.d.ts +10 -0
- package/dist/base/EventType.d.ts +7 -0
- package/dist/base/FeatureEventType.d.ts +7 -0
- package/dist/base/LayerEventType.d.ts +7 -0
- package/dist/base/MapEventType.d.ts +8 -0
- package/dist/base/base.d.ts +30 -3
- package/dist/base/baseClass.d.ts +22 -5
- package/dist/base/baseGraphicLayer.d.ts +225 -45
- package/dist/base/baseLayer.d.ts +7 -0
- package/dist/base/baseMap.d.ts +7 -0
- package/dist/base/baseOptionType.d.ts +40 -8
- package/dist/base/baseTileLayer.d.ts +10 -0
- package/dist/base/eventTarget.d.ts +10 -0
- package/dist/extend/Control/baseLayerSwitch.d.ts +15 -1
- package/dist/extend/Control/drawText.d.ts +11 -1
- package/dist/extend/Control/imageHJ.d.ts +10 -3
- package/dist/extend/Control/index.d.ts +14 -4
- package/dist/extend/Control/locationbar.d.ts +10 -3
- package/dist/extend/Control/swipe.d.ts +16 -5
- package/dist/extend/interaction/SelectTransform.d.ts +4 -5
- package/dist/extend/tykg.d.ts +5 -5
- package/dist/graphic/Curve.d.ts +10 -0
- package/dist/graphic/DivGraphic.d.ts +13 -4
- package/dist/graphic/baseGraphic.d.ts +63 -60
- package/dist/graphic/index.d.ts +10 -0
- package/dist/index.d.ts +7 -0
- package/dist/lib/includeLibs.js +23 -24
- package/dist/mirage2d.cjs.js +37 -37
- package/dist/mirage2d.umd.js +37 -37
- package/dist/proj4/proj.d.ts +22 -10
- package/dist/query/GaodePOI.d.ts +10 -0
- package/dist/query/GaodeRoute.d.ts +17 -0
- package/dist/query/baseGaode.d.ts +7 -0
- package/dist/query/index.d.ts +10 -0
- package/package.json +28 -7
- package/readme.md +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IImageCanvasLayerOption } from "../../base/baseOptionType";
|
|
2
2
|
import { baseLayer } from "../../base/baseLayer";
|
|
3
3
|
import Scale from "ol-ext/control/Scale";
|
|
4
|
-
import { drawTextControl } from
|
|
4
|
+
import { drawTextControl } from "../../extend/Control/drawText";
|
|
5
5
|
export declare class ImageCanvasLayer extends baseLayer {
|
|
6
6
|
scale: Scale;
|
|
7
7
|
ppi: number;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2022-12-10 16:59:14
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { baseGraphicLayer } from "../../base/baseGraphicLayer";
|
|
2
9
|
import { IGraphicLayerOption } from "../../base/baseOptionType";
|
|
3
10
|
export declare class kmlLayer extends baseGraphicLayer {
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-01-19 11:10:20
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
8
|
+
/// <reference types="node" />
|
|
1
9
|
import Feature from "ol/Feature";
|
|
2
|
-
import { LineString, Point } from "ol/geom";
|
|
10
|
+
import { Geometry, LineString, Point } from "ol/geom";
|
|
3
11
|
import { Coordinate } from "ol/coordinate";
|
|
4
12
|
import { IPathLayerOption } from "../../base/baseOptionType";
|
|
5
13
|
import { baseLayer } from "../../base/baseLayer";
|
|
@@ -22,7 +30,6 @@ export declare class PathLayer extends baseLayer {
|
|
|
22
30
|
private pathLineFeature;
|
|
23
31
|
private lastAngle;
|
|
24
32
|
private pathIndex;
|
|
25
|
-
private timer;
|
|
26
33
|
private pathNodeInfo;
|
|
27
34
|
private geoMarkerCircle;
|
|
28
35
|
private moveNodeInfo;
|
|
@@ -32,6 +39,7 @@ export declare class PathLayer extends baseLayer {
|
|
|
32
39
|
private routeFeatures;
|
|
33
40
|
private _source;
|
|
34
41
|
private multiLinePathData;
|
|
42
|
+
timer: NodeJS.Timer;
|
|
35
43
|
constructor(layerid: any, options: IPathLayerOption);
|
|
36
44
|
private styleFunc;
|
|
37
45
|
private moveFeature;
|
|
@@ -49,67 +57,62 @@ export declare class PathLayer extends baseLayer {
|
|
|
49
57
|
private moveFeature2;
|
|
50
58
|
private ComputDirection;
|
|
51
59
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
* :根据坐标或点获取网络路径上的最近点
|
|
61
|
+
* @param {Feature<Point> | Coordinate} Coordinate
|
|
62
|
+
* @returns {Feature<Point>} Point
|
|
63
|
+
*/
|
|
56
64
|
getNearestPointOnPathNetWork(Coordinate: Feature<Point> | Coordinate): Feature<Point>;
|
|
57
65
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* @param {number} angle 角度
|
|
61
|
-
* @param {boolean} addUserMarker 是否添加新的marker
|
|
62
|
-
* @return {Feature<Point>} Point
|
|
63
|
-
*/
|
|
66
|
+
* 添加导航mark,仅能存在一个
|
|
67
|
+
*/
|
|
64
68
|
addNavigationMarker(): void;
|
|
65
69
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
* :设置导航mark位置及角度
|
|
71
|
+
* @param {Feature<Point> | Coordinate} Coordinate
|
|
72
|
+
* @param {number} angle 角度
|
|
73
|
+
* @returns {Feature<Point>} Point
|
|
74
|
+
*/
|
|
71
75
|
setNavigationMarker(Coordinate: Feature<Point> | Coordinate, angle?: number): void;
|
|
72
76
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* @return {Feature<Point>} Point
|
|
78
|
-
*/
|
|
77
|
+
* 更新导航点
|
|
78
|
+
* @param {Feature<Point>} currentPoint
|
|
79
|
+
* @returns {Feature<Point>} Point
|
|
80
|
+
*/
|
|
79
81
|
private updateNavigationMarker;
|
|
80
82
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
* 返回导航路径
|
|
84
|
+
* @returns {LineString} 线
|
|
85
|
+
*/
|
|
83
86
|
getPathLine(): LineString;
|
|
84
87
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
* :计算导航路径
|
|
89
|
+
* @param {Coordinate} startCoordinate startCoordinate
|
|
90
|
+
* @param {Coordinate} endPointCoordinate 标准GeoJson格式
|
|
91
|
+
*/
|
|
89
92
|
computerPath(startCoordinate: Coordinate | Feature<Point>, endPointCoordinate: Coordinate | Feature<Point>): void;
|
|
90
93
|
computerPath2(startCoordinate: any, endPointCoordinate: any): void;
|
|
91
94
|
/**
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
addGeoJsonUrl(classname:
|
|
95
|
+
* : 添加GeoJSON数据,需要数据库样式匹配
|
|
96
|
+
* @param {string} classname 图层编号
|
|
97
|
+
* @param {string} url json地址
|
|
98
|
+
*/
|
|
99
|
+
addGeoJsonUrl(classname: string, url: string | URL): void;
|
|
97
100
|
/**
|
|
98
|
-
*
|
|
101
|
+
* : 添加GeoJSON数据,需要数据库样式匹配
|
|
99
102
|
* @param {string} classname 图层编号
|
|
100
103
|
* @param {any} GeoJson 标准GeoJson格式
|
|
101
104
|
*/
|
|
102
|
-
addGeoJson(classname:
|
|
105
|
+
addGeoJson(classname: string, GeoJson: any): void;
|
|
103
106
|
convertGeoJsontoFeatures(GeoJson: any): any;
|
|
104
107
|
addFeatures(classname: any, featuresList: any): void;
|
|
105
108
|
addFeature(classname: any, feature: any): void;
|
|
106
109
|
/**
|
|
107
|
-
*
|
|
108
|
-
* @param {
|
|
109
|
-
* @
|
|
110
|
+
* 按classname返回要素
|
|
111
|
+
* @param {string} classname 分类名
|
|
112
|
+
* @returns {Feature<Geometry>[]} 返回要素数组
|
|
110
113
|
*/
|
|
111
|
-
getFeaturesByClassName(classname:
|
|
112
|
-
getFeatures(name:
|
|
114
|
+
getFeaturesByClassName(classname: string): Feature<Geometry>[];
|
|
115
|
+
getFeatures(name: string): any;
|
|
113
116
|
getFeature(name: any): any;
|
|
114
117
|
/**删除GeoJSON数据
|
|
115
118
|
* @description:
|
|
@@ -1,12 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-06-02 16:40:19
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
8
|
+
import { IWFSFeatureOption } from "../../base/baseOptionType";
|
|
9
|
+
import { GraphicLayer } from "./GraphicLayer";
|
|
10
|
+
export declare class WfsLayer extends GraphicLayer {
|
|
4
11
|
geoserverData: {
|
|
5
12
|
wsName: string;
|
|
6
13
|
uri: string;
|
|
7
14
|
wfsURL: string;
|
|
8
15
|
layer: string;
|
|
9
16
|
};
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
queryParams: {
|
|
18
|
+
service: string;
|
|
19
|
+
request: string;
|
|
20
|
+
version: string;
|
|
21
|
+
outputFormat: string;
|
|
22
|
+
maxFeatures: string;
|
|
23
|
+
typeName: string;
|
|
24
|
+
} | any;
|
|
25
|
+
defaultExtent: any;
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 设置要素属性
|
|
29
|
+
* @param {string} layerid
|
|
30
|
+
* @param {IWFSFeatureOption} options 要素属性数组
|
|
31
|
+
* @example IWFSFeatureOption 中queryParams默认属性
|
|
32
|
+
* queryParams = {
|
|
33
|
+
service: "WFS",
|
|
34
|
+
request: "GetFeature",
|
|
35
|
+
version: "1.0.0",
|
|
36
|
+
outputFormat: "application/json",
|
|
37
|
+
maxFeatures: "1000",
|
|
38
|
+
typeName: "mars:hfjy",
|
|
39
|
+
bbox: "", // 范围,不传递时默认当前视图范围
|
|
40
|
+
filter: "", // 空间查询条件,当传递feature时系统自动生成 也可以自行配置GML格式
|
|
41
|
+
queryField: "", //属性查询字段
|
|
42
|
+
querykeyword: "",//属性查询字段关键字
|
|
43
|
+
autoShowFeature: false//自动显示,默认关闭,打开时会根据视图变化自动加载数据
|
|
44
|
+
}
|
|
45
|
+
*/
|
|
46
|
+
constructor(layerid: string, options?: IWFSFeatureOption);
|
|
47
|
+
private queryData;
|
|
48
|
+
/**
|
|
49
|
+
* :查询数据方法
|
|
50
|
+
* @param {any} queryParams 可根据wfs查询参数自定义配置
|
|
51
|
+
* @example 默认属性
|
|
52
|
+
* queryParams = {
|
|
53
|
+
service: "WFS",
|
|
54
|
+
request: "GetFeature",
|
|
55
|
+
version: "1.0.0",
|
|
56
|
+
outputFormat: "application/json",
|
|
57
|
+
maxFeatures: "1000",
|
|
58
|
+
typeName: "mars:hfjy",
|
|
59
|
+
feature: //地图上绘制的feature:
|
|
60
|
+
bbox: "", // 范围,不传递时默认当前视图范围
|
|
61
|
+
filter: "", // 空间查询条件,当传递feature时系统自动生成 也可以自行配置GML格式
|
|
62
|
+
queryField: "", //属性查询字段
|
|
63
|
+
querykeyword: "",//属性查询字段关键字
|
|
64
|
+
autoShowFeature: false//自动显示,默认关闭,打开时会根据视图变化自动加载数据
|
|
65
|
+
}
|
|
66
|
+
*/
|
|
67
|
+
query(queryParams?: {}): void;
|
|
12
68
|
}
|
package/dist/Layer/index.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-07-20 09:17:37
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-04-07 18:40:11
|
|
6
|
+
* @FilePath: \Map2D\src\Layer\index.ts
|
|
7
|
+
* @Description:
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2022 by xd, All Rights Reserved.
|
|
10
|
+
*/
|
|
1
11
|
export { ClusterLayer } from "./graphicLayer/ClusterLayer";
|
|
2
12
|
export { HeatmapLayer } from "./graphicLayer/HeatmapLayer";
|
|
3
13
|
export { WfsLayer } from "./graphicLayer/WfsLayer";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
2
|
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
3
3
|
/**
|
|
4
|
-
* @typedef {
|
|
4
|
+
* @typedef {object} Options
|
|
5
5
|
* @property {string} [url=''] 影像地址
|
|
6
6
|
* @property {number} [zIndex=1] 排序位置
|
|
7
7
|
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
@@ -14,6 +14,7 @@ import { ITileLayerOption } from "src/base/baseOptionType";
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class ArcGisMapServerLayer extends baseTileLayer {
|
|
16
16
|
/**
|
|
17
|
+
* ArcGisMapServerLayer
|
|
17
18
|
* @template {Options} Options
|
|
18
19
|
* @param {string} [layerid='ArcGisTileXyzLayer'] 默认图层id
|
|
19
20
|
* @param {Options} [Options] Options 配置项
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
2
|
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
3
3
|
/**
|
|
4
|
-
* @typedef {
|
|
4
|
+
* @typedef {object} Options
|
|
5
5
|
* @property {string} [url=''] 影像地址
|
|
6
6
|
* @property {number} [zIndex=1] 排序位置
|
|
7
7
|
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
@@ -9,12 +9,12 @@ import { ITileLayerOption } from "src/base/baseOptionType";
|
|
|
9
9
|
/**
|
|
10
10
|
* @classdesc
|
|
11
11
|
* xyz影像数据类
|
|
12
|
-
* @extends
|
|
12
|
+
* @extends baseTileLayer
|
|
13
13
|
* @api
|
|
14
14
|
*/
|
|
15
15
|
export declare class ArcGisTileXyzLayer extends baseTileLayer {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* ArcGisTileXyzLayer
|
|
18
18
|
* @param {string} [layerid='ArcGisTileXyzLayer'] 默认图层id
|
|
19
19
|
* @param {ITileLayerOption} [Options] Options 配置项
|
|
20
20
|
*/
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-05-05 11:44:55
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
9
|
import { IGeoImageLayerOption } from "../../base/baseOptionType";
|
|
3
10
|
import { PolygonGraphic } from "../../graphic/Polygon";
|
|
@@ -14,21 +21,22 @@ export declare class GeoImageLayer extends baseTileLayer {
|
|
|
14
21
|
graphic: PolygonGraphic;
|
|
15
22
|
constructor(layerid: any, options: IGeoImageLayerOption);
|
|
16
23
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
* : 获取影像基本属性
|
|
25
|
+
* @returns {any} 配置属性json
|
|
26
|
+
*/
|
|
20
27
|
getAttribute(): IGeoImageLayerOption;
|
|
21
28
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
* 开始编辑 必须先bindGraphicLayer
|
|
30
|
+
* @param {GraphicLayer} mGraphicLayer
|
|
31
|
+
*/
|
|
24
32
|
startEdit(mGraphicLayer: GraphicLayer): void;
|
|
25
33
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
* 结束编辑
|
|
35
|
+
*/
|
|
28
36
|
endEdit(): void;
|
|
29
37
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
* 设置影像显示比例范围,设置后可编辑
|
|
39
|
+
*/
|
|
32
40
|
setExtent(): void;
|
|
33
41
|
setScale(scale: number): void;
|
|
34
42
|
computeAutoScale(mapExtent: any): void;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-04-27 19:45:44
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
9
|
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
3
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
2
|
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
3
3
|
/**
|
|
4
|
-
* @typedef {
|
|
4
|
+
* @typedef {object} Options
|
|
5
5
|
* @property {string} [url=''] 影像地址
|
|
6
6
|
* @property {number} [zIndex=1] 排序位置
|
|
7
7
|
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
@@ -9,12 +9,12 @@ import { ITileLayerOption } from "src/base/baseOptionType";
|
|
|
9
9
|
/**
|
|
10
10
|
* @classdesc
|
|
11
11
|
* xyz影像数据类
|
|
12
|
-
* @extends
|
|
12
|
+
* @extends baseTileLayer
|
|
13
13
|
* @api
|
|
14
14
|
*/
|
|
15
15
|
export declare class TileBaiDuLayer extends baseTileLayer {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* TileBaiDuLayer
|
|
18
18
|
* @param {string} [layerid='TileXyzLayer'] 默认图层id
|
|
19
19
|
* @param {Options} [Options] Options 配置项
|
|
20
20
|
*/
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @date: Do not edit
|
|
4
|
+
* @lastEditors: xd
|
|
5
|
+
* @lastEditTime: Do not edit
|
|
6
|
+
* @filePath: Do not edit
|
|
7
|
+
* @description:
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2023 by xd, All Rights Reserved.
|
|
10
|
+
*/
|
|
1
11
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
12
|
/**
|
|
3
|
-
* @typedef {
|
|
13
|
+
* @typedef {object} Options
|
|
4
14
|
* @property {string} [url=''] 影像地址
|
|
5
15
|
* @property {number} [zIndex=1] 排序位置
|
|
6
16
|
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
@@ -8,11 +18,12 @@ import { baseTileLayer } from "../../base/baseTileLayer";
|
|
|
8
18
|
/**
|
|
9
19
|
* @classdesc
|
|
10
20
|
* xyz影像数据类
|
|
11
|
-
* @extends
|
|
21
|
+
* @extends baseTileLayer
|
|
12
22
|
* @api
|
|
13
23
|
*/
|
|
14
24
|
export declare class TileGroupLayer extends baseTileLayer {
|
|
15
25
|
/**
|
|
26
|
+
* TileGroupLayer
|
|
16
27
|
* @template {Options} Options
|
|
17
28
|
* @param {string} [layerid='TileGroupLayer'] 默认图层id
|
|
18
29
|
* @param {Options} [Options] Options 配置项
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-04-26 12:53:19
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
2
9
|
import { TileXyzLayer } from "./TileXyzLayer";
|
|
3
10
|
/**
|
|
4
|
-
* @typedef {
|
|
11
|
+
* @typedef {object} Options
|
|
5
12
|
* @property {string} [url=''] 影像地址
|
|
6
13
|
* @property {number} [zIndex=1] 排序位置
|
|
7
14
|
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
@@ -9,12 +16,12 @@ import { TileXyzLayer } from "./TileXyzLayer";
|
|
|
9
16
|
/**
|
|
10
17
|
* @classdesc
|
|
11
18
|
* xyz影像数据类
|
|
12
|
-
* @extends
|
|
19
|
+
* @extends TileXyzLayer
|
|
13
20
|
* @api
|
|
14
21
|
*/
|
|
15
22
|
export declare class TileTencentLayer extends TileXyzLayer {
|
|
16
23
|
/**
|
|
17
|
-
*
|
|
24
|
+
* TileTencentLayer
|
|
18
25
|
* @param {string} [layerid='TileXyzLayer'] 默认图层id
|
|
19
26
|
* @param {Options} [Options] Options 配置项
|
|
20
27
|
*/
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-05-18 16:27:07
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { Projection } from "ol/proj";
|
|
2
9
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
3
10
|
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
4
11
|
/**
|
|
5
|
-
* @typedef {
|
|
12
|
+
* @typedef {object} Options
|
|
6
13
|
* @property {string} [url=''] 影像地址
|
|
7
14
|
* @property {number} [zIndex=1] 排序位置
|
|
8
15
|
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
@@ -10,15 +17,15 @@ import { ITileLayerOption } from "src/base/baseOptionType";
|
|
|
10
17
|
/**
|
|
11
18
|
* @classdesc
|
|
12
19
|
* xyz影像数据类
|
|
13
|
-
* @extends
|
|
20
|
+
* @extends baseTileLayer
|
|
14
21
|
* @api
|
|
15
22
|
*/
|
|
16
23
|
export declare class TileXyzLayer extends baseTileLayer {
|
|
17
24
|
projection: Projection | string;
|
|
18
25
|
/**
|
|
19
|
-
*
|
|
26
|
+
* TileXyzLayer
|
|
20
27
|
* @param {string} [layerid='TileXyzLayer'] 默认图层id
|
|
21
|
-
* @param {
|
|
28
|
+
* @param {ITileLayerOption} [Options] Options 配置项
|
|
22
29
|
*/
|
|
23
30
|
constructor(layerid: string, Options: ITileLayerOption);
|
|
24
31
|
private setGCJ02;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2022-11-26 13:07:34
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
9
|
export declare class WmsLayer extends baseTileLayer {
|
|
3
10
|
/**
|
|
11
|
+
* WmsLayer
|
|
4
12
|
* @template {Options} Options
|
|
5
13
|
* @param {string} [layerid='ImageWMSLayer'] 默认图层id
|
|
6
14
|
* @param {Options} [Options] Options 配置项
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2022-11-26 13:06:10
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
9
|
import { IWmtsLayerOption } from "src/base/baseOptionType";
|
|
3
10
|
export declare class WmtsLayer extends baseTileLayer {
|
|
4
11
|
option: IWmtsLayerOption;
|
|
5
12
|
/**
|
|
13
|
+
* WmtsLayer
|
|
6
14
|
* @template {Options} Options
|
|
7
15
|
* @param {string} [layerid='ImageWMSLayer'] 默认图层id
|
|
8
16
|
* @param {IWmtsLayerOption} [Options] Options 配置项
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: xd
|
|
3
|
+
* @Date: 2022-01-13 22:43:45
|
|
4
|
+
* @LastEditors: xd
|
|
5
|
+
* @LastEditTime: 2023-04-27 19:37:16
|
|
6
|
+
* @Description: 功能
|
|
7
|
+
*/
|
|
1
8
|
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
9
|
import { ITileLayerOption } from "../../base/baseOptionType";
|
|
3
10
|
/**
|