egovamap 0.15.5 → 0.15.9

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.
@@ -306,6 +306,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
306
306
  var drawParam = options.drawParam || {};
307
307
  var ctrOption = drawParam.clusterOption;
308
308
  var clusterOption = {
309
+ clusterType: ctrOption.clusterType,
309
310
  level: ctrOption.level || 0,
310
311
  style: {
311
312
  "type": "simple-marker",
@@ -322,7 +323,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
322
323
  "color": ctrOption.labelColor || [255, 255, 255, 1],
323
324
  "text": "",
324
325
  "zlevel": ctrOption.labelZlevel || 1,
325
- "yoffset": -4,
326
+ "yoffset": 0,
326
327
  "font": ctrOption.labelFont || {
327
328
  "family": "Arial",
328
329
  "size": 10
@@ -348,6 +349,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
348
349
  var subUniqueCode = options.subUniqueCode;
349
350
  let queryCallback = function (featureInfos) {
350
351
  var features = featureInfos[queryParam.phyLayerIDs];
352
+ if (!features || !features.length) return;
351
353
  var symbolUrl = "";
352
354
  if (subUniqueCode.indexOf("http") > -1) {
353
355
  symbolUrl = subUniqueCode;
@@ -452,7 +454,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
452
454
  mouseOverCallback: queryParam.mouseOverCallback
453
455
  };
454
456
 
455
- let param = [layerID, keyField, keyValue, clearMap, style, hStyle, bZoom, randomColor, labelField, labelstyle, geometry, where, null, null, opts, null, null, null, null, null, null, queryParam.callback];
457
+ let param = [layerID, keyField, keyValue, clearMap, style, hStyle, bZoom, randomColor, labelField, labelstyle, geometry, where, null, null, opts, null, null, null, null, null, null, queryParam.clickCallback];
456
458
  //let param = [layerID, keyField, keyValue, clearMap, style, hStyle, bZoom, randomColor, labelField, labelstyle, geometry, where, null, null, opts, null, null, null, null, queryParam.callback];
457
459
  if (globeMap) {
458
460
  gisMap.locateFeatureByIDs(...param);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.5",
3
+ "version": "0.15.9",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {