egovamap 0.33.10 → 0.33.12

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.
@@ -2797,6 +2797,18 @@ var EGovaGISMap = function (
2797
2797
  that.addMaskLayerV22 = function (params) {
2798
2798
  that.callMap("addMaskLayerV22",params);
2799
2799
  }
2800
+
2801
+ that.destroyMap = function () {
2802
+ that.callMap("destroyMap");
2803
+ }
2804
+
2805
+ that.pointInPolygon = function (point, polygon, callback) {
2806
+ return that.callMap("pointInPolygon", point, polygon, callback);
2807
+ }
2808
+
2809
+ that.buffer = function (type, geometry, radius, callback) {
2810
+ return that.callMap("buffer", type, geometry, radius, callback);
2811
+ }
2800
2812
 
2801
2813
  that.init();
2802
2814
  };
@@ -2340,6 +2340,20 @@ var EGovaMap = function (
2340
2340
  gisMap.getBuffer.apply(this, arguments);
2341
2341
  }
2342
2342
  };
2343
+
2344
+ /**
2345
+ * 构造点、线、面缓冲区
2346
+ * type "POLYGON"|"POLYLINE"|"POINT"
2347
+ * geometry
2348
+ * radius
2349
+ */
2350
+ that.buffer = function (type, geometry, radius, callback) {
2351
+ if (scene == null) return;
2352
+ if (gisMap != null) {
2353
+ return gisMap.buffer.apply(this, arguments);
2354
+ }
2355
+ }
2356
+
2343
2357
  /**
2344
2358
  * @param {*} points 点位坐标list,[[x,y],...]
2345
2359
  * @param {*} radius 缓冲距离,单位为米
@@ -5422,12 +5436,12 @@ var EGovaMap = function (
5422
5436
  };
5423
5437
 
5424
5438
  // 判断点是否在面以内
5425
- that.pointInPolygon = function (point, polygon) {
5439
+ that.pointInPolygon = function (point, polygon, callback) {
5426
5440
  if (scene == null) {
5427
5441
  return;
5428
5442
  }
5429
5443
  if (gisMap != null) {
5430
- gisMap.pointInPolygon(point, polygon);
5444
+ return gisMap.pointInPolygon(point, polygon, callback);
5431
5445
  }
5432
5446
  };
5433
5447
 
@@ -5509,6 +5523,13 @@ var EGovaMap = function (
5509
5523
  gisMap.addMaskLayerV22(params);
5510
5524
  }
5511
5525
  };
5526
+
5527
+ that.destroyMap(){
5528
+ if (scene == null) return;
5529
+ if (gisMap != null) {
5530
+ gisMap.destroyMap();
5531
+ }
5532
+ }
5512
5533
 
5513
5534
  that.initMap(containerID, callback, mapType, mapConfig);
5514
5535
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.33.10",
3
+ "version": "0.33.12",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {