cd-mapgis 1.1.21 → 1.1.23

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.23",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
package/src/OM.js CHANGED
@@ -264,6 +264,7 @@ export default class OM {
264
264
  }
265
265
  //再加载geoServer接口图层
266
266
  let param = p.param ? p.param : {};
267
+ param.clientIp = OM.getIp(window.location.href);
267
268
  let res = await OM.post("/map/getPushLayer", param);
268
269
  if (res != null && res.data != null) {
269
270
  let d = res.data;
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)