egovamap 0.29.3 → 0.29.5

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.
@@ -155,10 +155,16 @@ var egovaBI = function (globeMap, gisMap, mapType) {
155
155
  }
156
156
  //textValue
157
157
  if (options.textStyle.enableText) {
158
+ let labelMinZoom = options.common.beginLevel;
159
+ let labelMaxZoom = options.common.endLevel;
160
+ if(options.textStyle.labelZoomEnabled) {
161
+ labelMinZoom = options.textStyle.textBeginLevel;
162
+ labelMaxZoom = options.textStyle.textEndLevel;
163
+ }
158
164
  p.labelStyle = {
159
165
  type: "text",
160
- minZoom: options.common.beginLevel,
161
- maxZoom: options.common.endLevel,
166
+ minZoom: labelMinZoom,
167
+ maxZoom: labelMaxZoom,
162
168
  xoffset: options.textStyle.xoffset + "px",
163
169
  yoffset: options.textStyle.yoffset + "px",
164
170
  text: p.textValue,
@@ -2497,6 +2497,17 @@ var EGovaGISMap = function (
2497
2497
  false
2498
2498
  );
2499
2499
  };
2500
+
2501
+ // 判断点是否在面以内
2502
+ that.pointInPolygon = function (point, polygon) {
2503
+ if (scene == null) return;
2504
+ scene.fire(
2505
+ msgPrefix + ":pointInPolygon",
2506
+ { args: [point, polygon] },
2507
+ parentScene,
2508
+ false
2509
+ );
2510
+ };
2500
2511
 
2501
2512
  that.init();
2502
2513
  };
@@ -5221,7 +5221,17 @@ var EGovaMap = function (
5221
5221
  gisMap.coordConvert(type, x, y, callback);
5222
5222
  }
5223
5223
  }
5224
-
5224
+
5225
+ // 判断点是否在面以内
5226
+ that.pointInPolygon = function (point, polygon) {
5227
+ if (scene == null) {
5228
+ return;
5229
+ }
5230
+ if (gisMap != null) {
5231
+ gisMap.pointInPolygon(point, polygon);
5232
+ }
5233
+ }
5234
+
5225
5235
  that.initMap(containerID, callback, mapType, mapConfig);
5226
5236
 
5227
5237
  // EGovaBI(globeMap).bind(this)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.29.3",
3
+ "version": "0.29.5",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {