mirage2d 1.2.47 → 1.2.48
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Style } from "ol/style";
|
|
1
2
|
import { baseLayer } from "../../base/baseLayer";
|
|
2
3
|
import { MirageMap } from "../XMap";
|
|
3
4
|
export declare class PbfLayer extends baseLayer {
|
|
@@ -17,6 +18,7 @@ export declare class PbfLayer extends baseLayer {
|
|
|
17
18
|
strokeWidth: number;
|
|
18
19
|
}];
|
|
19
20
|
});
|
|
20
|
-
tileUrlFunction(tileCoord: any, url: any):
|
|
21
|
+
tileUrlFunction(tileCoord: any, url: any): any;
|
|
21
22
|
appendTo(map: MirageMap): void;
|
|
23
|
+
createDynamicStyle(featureStyles: any): (feature: any) => Style;
|
|
22
24
|
}
|
|
@@ -189,6 +189,7 @@ export declare class MirageDefaultStyle {
|
|
|
189
189
|
strokeradius: number;
|
|
190
190
|
text: string;
|
|
191
191
|
};
|
|
192
|
+
static getTextCircleStyle(opt: any): Style[];
|
|
192
193
|
static getTipStyle(): Style;
|
|
193
194
|
static getIconStyle(opt: any): Style;
|
|
194
195
|
static getPointStyle(opt: any): Style;
|
package/dist/base/base.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Feature from "ol/Feature";
|
|
1
2
|
import { baseClass } from "./baseClass";
|
|
2
3
|
/**
|
|
3
4
|
* 基础baseClass
|
|
@@ -30,6 +31,7 @@ export declare class base extends baseClass {
|
|
|
30
31
|
ConvertCoordinatesTo3857(wkid: string, Coordinates: number[]): number[];
|
|
31
32
|
ConvertCoordinatesTo4326(wkid: string, Coordinates: any): any;
|
|
32
33
|
formatJsonTo3857(GeoJson: any): any;
|
|
34
|
+
read3857Json(GeoJson: any): Feature<import("ol/geom/Geometry").default>[];
|
|
33
35
|
formatJsonTo4326Json(GeoJson: any): import("geojson").FeatureCollection<import("geojson").Geometry, {
|
|
34
36
|
[name: string]: any;
|
|
35
37
|
}>;
|
|
@@ -93,6 +93,12 @@ export declare class baseGraphicLayer extends baseLayer {
|
|
|
93
93
|
* @param {any} GeoJson 标准GeoJson格式
|
|
94
94
|
*/
|
|
95
95
|
addGeoJson(classname: string, GeoJson: any): void;
|
|
96
|
+
/**
|
|
97
|
+
* : 添加GeoJSON数据,需要数据库样式匹配
|
|
98
|
+
* @param {string} classname 图层编号
|
|
99
|
+
* @param {any} GeoJson 标准GeoJson格式
|
|
100
|
+
*/
|
|
101
|
+
addGeoJson3857(classname: string, GeoJson: any): void;
|
|
96
102
|
/**
|
|
97
103
|
* : 添加GeoJSON数据,多边形将转为点格式
|
|
98
104
|
* @param {string} classname 图层编号
|