egovamap 0.11.0 → 0.11.4
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.
- package/egovamap/egovagis.js +2 -2
- package/egovamap/egovaglobe.js +2 -2
- package/egovamap/egovamap.js +7 -6
- package/package.json +1 -1
package/egovamap/egovagis.js
CHANGED
|
@@ -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
|
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -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(
|
|
1773
|
+
that.focusOnDistrict = function(config, positions, modelName, hideLayerNames){
|
|
1774
1774
|
if (scene == null)
|
|
1775
1775
|
return;
|
|
1776
|
-
scene.fire((msgPrefix + ":focusOnDistrict"), {args: [
|
|
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)
|
package/egovamap/egovamap.js
CHANGED
|
@@ -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
|
-
|
|
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;
|
|
@@ -1331,7 +1332,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
1331
1332
|
obj[key] = arrayObj[key][colorKey];
|
|
1332
1333
|
|
|
1333
1334
|
if (index > colorLength - 1) {
|
|
1334
|
-
obj[key] = obj[key] || tempValue[colorLength - 1];
|
|
1335
|
+
obj[key] = obj[key] || tempValue[Math.round(Math.random() * (colorLength - 1))];
|
|
1335
1336
|
} else {
|
|
1336
1337
|
obj[key] = obj[key] || tempValue[index];
|
|
1337
1338
|
}
|
|
@@ -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 (
|
|
3479
|
+
that.focusOnDistrict = function (config, positions, modelName, hideLayerNames) {
|
|
3479
3480
|
if (scene == null)
|
|
3480
3481
|
return;
|
|
3481
3482
|
if (globeMap != null) {
|
|
3482
|
-
globeMap.focusOnDistrict(
|
|
3483
|
+
globeMap.focusOnDistrict(config, positions, modelName, hideLayerNames);
|
|
3483
3484
|
}
|
|
3484
3485
|
}
|
|
3485
3486
|
|