mirage2d 1.2.5 → 1.2.7
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/Tools/SpatialAnalysis.d.ts +7 -1
- package/dist/config/json/mapConfig.json +1 -1
- package/dist/mirage2d.cjs.js +37 -37
- package/dist/mirage2d.umd.js +37 -37
- package/package.json +4 -2
- package/dist/MirageHttp.es.js +0 -5268
- package/dist/MirageHttp.es.js.map +0 -205
- package/dist/MirageHttp.umd.js +0 -2
- package/dist/MirageHttp.umd.js.map +0 -1263
|
@@ -114,7 +114,7 @@ export declare class SpatialAnalysis {
|
|
|
114
114
|
/**
|
|
115
115
|
* : 创建多边形网格
|
|
116
116
|
* @param {string} type 范围datagridType.point hex square triangle
|
|
117
|
-
* @param {*} option { box: [0, 0, 0, 0], cellSide: 50 } box 生成四角范围【minLng,minLat,maxLng,maxLat】 cellSide
|
|
117
|
+
* @param {*} option { box: [0, 0, 0, 0], cellSide: 50 } box 生成四角范围【minLng,minLat,maxLng,maxLat】 cellSide m单位 默认50
|
|
118
118
|
* @returns {*} 要素数组
|
|
119
119
|
*/
|
|
120
120
|
static createGrid(type: any, option?: {
|
|
@@ -173,6 +173,12 @@ export declare class SpatialAnalysis {
|
|
|
173
173
|
* @returns {*} 计算后结果
|
|
174
174
|
*/
|
|
175
175
|
static transTo3857(box: any): olExtent.Extent;
|
|
176
|
+
/**
|
|
177
|
+
* 转化范围3857to4326
|
|
178
|
+
* @param {number[]} box 四角范围【minX,minY,maxX,maxY】
|
|
179
|
+
* @returns {*} 计算后结果【minLng,minLat,maxLng,maxLat】
|
|
180
|
+
*/
|
|
181
|
+
static transExtentTo4326(box: any): olExtent.Extent;
|
|
176
182
|
/**
|
|
177
183
|
* 获取要素范围
|
|
178
184
|
* @param {Feature<Geometry>} feature 要素
|