my-openlayer 0.0.12 → 0.0.13
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/core/Line.d.ts +2 -2
- package/dist/core/Line.js +2 -2
- package/dist/core/Polygon.d.ts +1 -1
- package/dist/core/Polygon.js +1 -1
- package/package.json +1 -1
package/dist/core/Line.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export default class Line {
|
|
|
9
9
|
[propertyName: string]: any;
|
|
10
10
|
constructor(myOlMap: MyOl, map: Map);
|
|
11
11
|
addLineCommon(data: MapJSONData, options: OptionsType): void;
|
|
12
|
-
addRiverLayersByZoom(fyRiverJson: MapJSONData, options?: OptionsType):
|
|
12
|
+
addRiverLayersByZoom(fyRiverJson: MapJSONData, options?: OptionsType): void;
|
|
13
13
|
showRiverLayer(show: boolean): void;
|
|
14
14
|
showRiverLayerByZoom(): void;
|
|
15
|
-
addRiverWidthByLev(arr?: any):
|
|
15
|
+
addRiverWidthByLev(arr?: any): void;
|
|
16
16
|
setFeatureAttr(feature: {
|
|
17
17
|
get: (arg0: string) => any;
|
|
18
18
|
}): any;
|
package/dist/core/Line.js
CHANGED
|
@@ -32,7 +32,7 @@ export default class Line {
|
|
|
32
32
|
this.map.addLayer(layer);
|
|
33
33
|
}
|
|
34
34
|
// 添加水系并按照zoom显示不同级别
|
|
35
|
-
|
|
35
|
+
addRiverLayersByZoom(fyRiverJson, options = { type: 'river' }) {
|
|
36
36
|
this.riverLayerShow = !!options.show;
|
|
37
37
|
this.riverLayerList = [];
|
|
38
38
|
for (let i = 1; i <= 5; i++) {
|
|
@@ -93,7 +93,7 @@ export default class Line {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
// 添加全部级别河流根据级别显示不同宽度
|
|
96
|
-
|
|
96
|
+
addRiverWidthByLev(arr = {}) {
|
|
97
97
|
const riverLayer = new VectorLayer({
|
|
98
98
|
name: 'river',
|
|
99
99
|
layerName: 'river',
|
package/dist/core/Polygon.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default class Polygon {
|
|
|
19
19
|
* @param options 图层配置
|
|
20
20
|
*/
|
|
21
21
|
addPolygonMapLayer(data: MapJSONData, type: string | undefined, options: OptionsType): void;
|
|
22
|
-
addPolygonLayerCommon(dataJSON: MapJSONData, options?: OptionsType):
|
|
22
|
+
addPolygonLayerCommon(dataJSON: MapJSONData, options?: OptionsType): any;
|
|
23
23
|
/**
|
|
24
24
|
* 根据数据数组更新某个面颜色
|
|
25
25
|
* @param layerName 图层名称
|
package/dist/core/Polygon.js
CHANGED
|
@@ -69,7 +69,7 @@ export default class Polygon {
|
|
|
69
69
|
}
|
|
70
70
|
// 添加分区
|
|
71
71
|
//fyBasinJson中的id的key需要跟options中的nameKey一致
|
|
72
|
-
|
|
72
|
+
addPolygonLayerCommon(dataJSON, options = {}) {
|
|
73
73
|
if (options.type != null) {
|
|
74
74
|
this.myOlMap.getTools().removeLayer(options.type);
|
|
75
75
|
}
|