cd-mapgis 1.1.21 → 1.1.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
package/src/PointLayer.js CHANGED
@@ -39,6 +39,12 @@ export default class PointLayer {
39
39
  }
40
40
  this.vectorSource.addFeatures(a);
41
41
  }
42
+ /**
43
+ * 清除所有要数
44
+ */
45
+ clearAll() {
46
+ this.vectorSource.clear();
47
+ }
42
48
  _getFeature(p) {
43
49
  let feature = new Feature({
44
50
  geometry: new Point(p.point)