cd-mapgis 1.0.29 → 1.0.31
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/package.json +1 -1
- package/src/MapDrawUtil.js +2 -2
- package/src/StyleUtil.js +4 -4
package/package.json
CHANGED
package/src/MapDrawUtil.js
CHANGED
|
@@ -44,7 +44,7 @@ export default class MapDrawUtil {
|
|
|
44
44
|
drawend(fun, stop) {
|
|
45
45
|
let _this = this;
|
|
46
46
|
this.drawObj.on('drawend', (e) => {
|
|
47
|
-
_this._drawTempLayer(
|
|
47
|
+
_this._drawTempLayer(e.feature);
|
|
48
48
|
try {
|
|
49
49
|
fun(e.feature.getGeometry().getCoordinates());//绘制完成后,将绘制的坐标串传入回调函数
|
|
50
50
|
} catch (ex) {
|
|
@@ -104,7 +104,7 @@ export default class MapDrawUtil {
|
|
|
104
104
|
});
|
|
105
105
|
//绘制完成事件
|
|
106
106
|
this.drawObj.on('drawend', function (e) {
|
|
107
|
-
_this._drawTempLayer(
|
|
107
|
+
_this._drawTempLayer(e.feature);
|
|
108
108
|
_sketch = null;
|
|
109
109
|
unByKey(_listener);
|
|
110
110
|
});
|
package/src/StyleUtil.js
CHANGED
|
@@ -30,17 +30,17 @@ export default class StyleUtil {
|
|
|
30
30
|
fill: new Fill({
|
|
31
31
|
color: 'rgba(255, 255, 255, 0.2)'
|
|
32
32
|
}),
|
|
33
|
-
stroke: Stroke({
|
|
33
|
+
stroke: new Stroke({
|
|
34
34
|
color: 'rgba(0, 0, 255, 1)',
|
|
35
35
|
lineDash: [10, 10],
|
|
36
36
|
width: 2
|
|
37
37
|
}),
|
|
38
|
-
image: Circle({
|
|
38
|
+
image: new Circle({
|
|
39
39
|
radius: 5,
|
|
40
|
-
stroke: Stroke({
|
|
40
|
+
stroke: new Stroke({
|
|
41
41
|
color: 'rgba(0, 0, 0, 0.7)'
|
|
42
42
|
}),
|
|
43
|
-
fill: Fill({
|
|
43
|
+
fill: new Fill({
|
|
44
44
|
color: 'rgba(255, 255, 255, 0.2)'
|
|
45
45
|
})
|
|
46
46
|
})
|