egovamap 0.16.0 → 0.16.1

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.
@@ -349,6 +349,10 @@ var egovaBI = function(globeMap, gisMap, mapType){
349
349
  var subUniqueCode = options.subUniqueCode;
350
350
  let queryCallback = function (featureInfos) {
351
351
  var features = featureInfos[queryParam.phyLayerIDs];
352
+ if (features.length == 0) {
353
+ callback && callback([]);
354
+ return;
355
+ }
352
356
  if (!features || !features.length) return;
353
357
  var symbolUrl = "";
354
358
  if (subUniqueCode.indexOf("http") > -1) {
@@ -361,7 +365,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
361
365
  var dataList = features.map((function (feature) {
362
366
  return Object.assign({}, { x: feature.geometry.x, y: feature.geometry.y }, {
363
367
  attributes: feature.attributes,
364
- //label:self.getLabel(feature.attributes),
368
+ label:self.getLabel(feature.attributes),
365
369
  symbolType: -1,
366
370
  symbolUrl: symbolUrl,
367
371
  });
@@ -2160,6 +2160,26 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
2160
2160
  if (scene == null)
2161
2161
  return;
2162
2162
  scene.fire((msgPrefix + ":hidePbrPanel"), { args: [] }, parentScene, false);
2163
+ };
2164
+ that.showPop = function(property, keyPropety, position) {
2165
+ if (scene == null)
2166
+ return;
2167
+ scene.fire((msgPrefix + ":showPop"), { args: [property, keyPropety, position] }, parentScene, false);
2168
+ };
2169
+ that.union = function() {
2170
+ if (scene == null)
2171
+ return;
2172
+ scene.fire((msgPrefix + ":union"), { args: [] }, parentScene, false);
2173
+ };
2174
+ that.difference = function() {
2175
+ if (scene == null)
2176
+ return;
2177
+ scene.fire((msgPrefix + ":difference"), { args: [] }, parentScene, false);
2178
+ };
2179
+ that.splitComparison = function(bool) {
2180
+ if (scene == null)
2181
+ return;
2182
+ scene.fire((msgPrefix + ":splitComparison"), { args: [bool] }, parentScene, false);
2163
2183
  };
2164
2184
  that.init();
2165
2185
  };
@@ -4162,6 +4162,34 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
4162
4162
  if (globeMap != null) {
4163
4163
  globeMap.hidePbrPanel();
4164
4164
  }
4165
+ };
4166
+ that.showPop = function(property, keyPropety, position) {
4167
+ if (scene == null)
4168
+ return;
4169
+ if (globeMap != null) {
4170
+ globeMap.showPop(property, keyPropety, position);
4171
+ }
4172
+ };
4173
+ that.union = function() {
4174
+ if (scene == null)
4175
+ return;
4176
+ if (globeMap != null) {
4177
+ globeMap.union();
4178
+ }
4179
+ };
4180
+ that.difference = function() {
4181
+ if (scene == null)
4182
+ return;
4183
+ if (globeMap != null) {
4184
+ globeMap.difference();
4185
+ }
4186
+ };
4187
+ that.splitComparison = function(bool) {
4188
+ if (scene == null)
4189
+ return;
4190
+ if (globeMap != null) {
4191
+ globeMap.splitComparison(bool);
4192
+ }
4165
4193
  };
4166
4194
  that.initMap(containerID, callback, mapType, mapConfig);
4167
4195
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {