egovamap 0.33.10 → 0.33.11

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.
@@ -2798,6 +2798,14 @@ var EGovaGISMap = function (
2798
2798
  that.callMap("addMaskLayerV22",params);
2799
2799
  }
2800
2800
 
2801
+ that.pointInPolygon = function (point, polygon, callback) {
2802
+ return that.callMap("pointInPolygon", point, polygon, callback);
2803
+ }
2804
+
2805
+ that.buffer = function (type, geometry, radius, callback) {
2806
+ return that.callMap("buffer", type, geometry, radius, callback);
2807
+ }
2808
+
2801
2809
  that.init();
2802
2810
  };
2803
2811
 
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.33.10",
3
+ "version": "0.33.11",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {