egovamap 0.11.1 → 0.11.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.
@@ -699,8 +699,8 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
699
699
  /**
700
700
  *等值面生成
701
701
  **/
702
- that.isobands = function(attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor){
703
- scene.fire(msgPrefix + ":isobands", { args: [attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor] },
702
+ that.isobands = function(attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor,callback){
703
+ scene.fire(msgPrefix + ":isobands", { args: [attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor,callback] },
704
704
  parentScene);
705
705
  }
706
706
 
@@ -1770,10 +1770,10 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
1770
1770
  return;
1771
1771
  scene.fire((msgPrefix + ":modifyAttributes"), {args: [layerName, objID, newProperties, options, autoRevert]}, parentScene, false);
1772
1772
  };
1773
- that.focusOnDistrict = function(modelName,positions,config,hideLayerNames){
1773
+ that.focusOnDistrict = function(config, positions, modelName, hideLayerNames){
1774
1774
  if (scene == null)
1775
1775
  return;
1776
- scene.fire((msgPrefix + ":focusOnDistrict"), {args: [modelName,positions,config,hideLayerNames]}, parentScene, false);
1776
+ scene.fire((msgPrefix + ":focusOnDistrict"), {args: [config, positions, modelName, hideLayerNames]}, parentScene, false);
1777
1777
  };
1778
1778
  that.showLaserWall = function(coordinatesData, layerName, options){
1779
1779
  if (scene == null)
@@ -1310,7 +1310,8 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
1310
1310
  tempValue = getRgbaArray(keyValueArray.length ,tempValue);
1311
1311
  } else {
1312
1312
  // By hth 2021/5/11: 如果颜色大于50,考虑到性能和可能卡死的问题,则直接采用随机颜色赋值且不考虑随机到重复色的情况
1313
- tempValue = getRandomColorArray(keyValueArray.length - tempValue.length, tempValue[0]);
1313
+ var extraColor = getRandomColorArray(keyValueArray.length - tempValue.length, tempValue[0]);
1314
+ tempValue = tempValue.concat(extraColor);
1314
1315
  }
1315
1316
  }
1316
1317
  var colorLength = tempValue.length;
@@ -1378,7 +1379,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
1378
1379
  globeMap.showDistrict(jsonInfo, zoom, clear, options, layerName, clickCallback, mouseOverCallBack);
1379
1380
  }
1380
1381
 
1381
- successFunc && successFunc();
1382
+ successFunc && successFunc(jsonInfo);
1382
1383
  };
1383
1384
  gisMap.change3dlayerUsageConfig();
1384
1385
  gisMap.queryFeature(queryParam, queryCallback);
@@ -3327,10 +3328,10 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3327
3328
  * @param {Number} hascelllabel 是否获取插值数值
3328
3329
  * @param {Number} labelcolor 插值颜色
3329
3330
  */
3330
- that.isobands = function(attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor){
3331
+ that.isobands = function(attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor,callback){
3331
3332
  if (scene == null) { return; }
3332
3333
  if (gisMap != null) {
3333
- gisMap.isobands(attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor);
3334
+ gisMap.isobands(attrarry,xarry,yarry,breaks,breakcolors,cellwidth,boundary,hascelllabel,labelcolor,callback);
3334
3335
  }
3335
3336
  }
3336
3337
 
@@ -3475,11 +3476,11 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3475
3476
  * @author: Hetianhong
3476
3477
  * @date: 2021-07-09 14:51:52
3477
3478
  */
3478
- that.focusOnDistrict = function (modelName,positions,config,hideLayerNames) {
3479
+ that.focusOnDistrict = function (config, positions, modelName, hideLayerNames) {
3479
3480
  if (scene == null)
3480
3481
  return;
3481
3482
  if (globeMap != null) {
3482
- globeMap.focusOnDistrict(modelName,positions,config,hideLayerNames);
3483
+ globeMap.focusOnDistrict(config, positions, modelName, hideLayerNames);
3483
3484
  }
3484
3485
  }
3485
3486
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.11.1",
3
+ "version": "0.11.5",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {