mirage2d 1.1.97 → 1.1.99
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/Layer/graphicLayer/ArcGisFeatureServiceLayer.d.ts +2 -2
- package/dist/Tools/SpatialAnalysis.d.ts +13 -1
- package/dist/base/FeatureEventType.d.ts +1 -0
- package/dist/base/baseGraphicLayer.d.ts +1 -1
- package/dist/base/baseOptionType.d.ts +5 -0
- package/dist/mirage2d.cjs.js +37 -37
- package/dist/mirage2d.umd.js +37 -37
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { baseGraphicLayer } from "../../base/baseGraphicLayer";
|
|
2
|
-
import {
|
|
2
|
+
import { IArcGisFeatureOption } from "../../base/baseOptionType";
|
|
3
3
|
export declare class ArcGisFeatureServiceLayer extends baseGraphicLayer {
|
|
4
|
-
constructor(layerid: string, options?:
|
|
4
|
+
constructor(layerid: string, options?: IArcGisFeatureOption);
|
|
5
5
|
}
|
|
@@ -99,7 +99,7 @@ export declare class SpatialAnalysis {
|
|
|
99
99
|
* @param {*} featureList 查询的数据列表
|
|
100
100
|
* @return {*} 包含的featureList
|
|
101
101
|
*/
|
|
102
|
-
static booleanContains(feature: any, featureList: any): any[];
|
|
102
|
+
static booleanContains(feature: any, featureList: Feature<Geometry>[] | any): any[];
|
|
103
103
|
/**
|
|
104
104
|
* @description: 创建泰森多边形
|
|
105
105
|
* @param {string} type 范围pointToPolygonType.voronoi tin convex
|
|
@@ -171,6 +171,18 @@ export declare class SpatialAnalysis {
|
|
|
171
171
|
*/
|
|
172
172
|
static transTo3857(box: any): olExtent.Extent;
|
|
173
173
|
/**
|
|
174
|
+
* @description: 获取要素范围
|
|
175
|
+
* @param {Feature<Geometry>} 要素Feature
|
|
176
|
+
* @return {Extent} 计算后结果[x1,y1,x2,y2]
|
|
177
|
+
*/
|
|
178
|
+
static getFeatureExtent(feature: Feature<Geometry>): olExtent.Extent;
|
|
179
|
+
/**
|
|
180
|
+
* @description: 获取要素坐标
|
|
181
|
+
* @param {Feature<Geometry>} 要素Feature
|
|
182
|
+
* @return {Coordinates} 计算后结果[x1,y1]
|
|
183
|
+
*/
|
|
184
|
+
static getFeatureCoord(feature: Feature<Geometry>): any;
|
|
185
|
+
/**
|
|
174
186
|
* @description: 取区域内的随机点,默认在中国范围内
|
|
175
187
|
* @param {Extent} box
|
|
176
188
|
* @return {*} 计算后结果
|
|
@@ -8,6 +8,7 @@ export declare enum featureType {
|
|
|
8
8
|
onFeatureContextmenu = "FeatureContextmenu",
|
|
9
9
|
onFeatureMousemove = "mousemove",
|
|
10
10
|
onFeatureMouseout = "mouseout",
|
|
11
|
+
onFeaturesLoad = "onFeaturesLoad",
|
|
11
12
|
onFeaturePopupOpen = "popupopen",
|
|
12
13
|
onFeaturePopupClose = "popupclose",
|
|
13
14
|
onFeatureTooltipOpen = "tooltipopen",
|
|
@@ -20,7 +20,7 @@ export declare class baseGraphicLayer extends baseLayer {
|
|
|
20
20
|
endMove(): void;
|
|
21
21
|
startEdit(): void;
|
|
22
22
|
endEdit(): void;
|
|
23
|
-
bindContextmenu(menu
|
|
23
|
+
bindContextmenu(menu?: any): void;
|
|
24
24
|
unbindContextmenu(): void;
|
|
25
25
|
appendContextmenu(menu: any): void;
|
|
26
26
|
protected _setFeatureContextmenu(feature: any, contextmenu: any): void;
|
|
@@ -88,6 +88,11 @@ export interface IGraphicLayerOption extends ILayerOption {
|
|
|
88
88
|
hashMove?: boolean;
|
|
89
89
|
hashSelect?: boolean;
|
|
90
90
|
}
|
|
91
|
+
export interface IArcGisFeatureOption extends IGraphicLayerOption {
|
|
92
|
+
where?: string;
|
|
93
|
+
outFields?: string;
|
|
94
|
+
extent?: Array<number>;
|
|
95
|
+
}
|
|
91
96
|
export interface IImageCanvasLayerOption extends ILayerOption {
|
|
92
97
|
line1Style?: string;
|
|
93
98
|
line1Width: number;
|