egovamap 0.21.4 → 0.21.6

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.
@@ -3,7 +3,7 @@ var XEvent = function () {
3
3
  }
4
4
  XEvent.prototype = {
5
5
  on: function (type, handler) {
6
- if (typeof this.handlers[type] == "undefined") {
6
+ if (!this.handlers[type]) {
7
7
  this.handlers[type] = [];
8
8
  }
9
9
  this.handlers[type].push(handler);
@@ -380,6 +380,10 @@ var egovaBI = function(globeMap, gisMap, mapType){
380
380
  }
381
381
  if(x&&y){
382
382
  let item={...element.attributes,x,y};
383
+ if (globeMap && mapType == "globe"&&options.primaryKey) {
384
+ let primaryKeyValue=item[options.primaryKey]
385
+ primaryKeyValue!=undefined&&(item['attributes']={objectID:primaryKeyValue});
386
+ }
383
387
  dataCache.push(item);
384
388
  }else{
385
389
  errorSize++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.21.4",
3
+ "version": "0.21.6",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {