egovamap 0.12.6 → 0.12.7
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.
|
@@ -1355,13 +1355,16 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
1357
|
/* 圆饼图 */
|
|
1358
|
-
that.addCircleChart = function (name, data, color, param, id, minZoom, maxZoom) {
|
|
1358
|
+
that.addCircleChart = function (name, data, color, param, id, minZoom, maxZoom, clickCallback) {
|
|
1359
1359
|
color = color || "#1B5771";
|
|
1360
1360
|
param = param || {
|
|
1361
1361
|
minRadius: 20,
|
|
1362
1362
|
rangeRadius: 20
|
|
1363
1363
|
};
|
|
1364
|
-
|
|
1364
|
+
var callback = function(type,info){
|
|
1365
|
+
if(type === "clickCallback" && clickCallback) clickCallback(info);
|
|
1366
|
+
}
|
|
1367
|
+
that.callMap('addCircleChart', name, data, color, param, id, minZoom, maxZoom, callback);
|
|
1365
1368
|
}
|
|
1366
1369
|
|
|
1367
1370
|
/* 饼图 */
|
package/egovamap/egovamap.js
CHANGED
|
@@ -2099,7 +2099,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
2101
|
/* 区域饼图 */
|
|
2102
|
-
that.addCircleChart = function (name, data, color, param) {
|
|
2102
|
+
that.addCircleChart = function (name, data, color, param, minZoom, maxZoom, clickCallback) {
|
|
2103
2103
|
if (scene == null)
|
|
2104
2104
|
return;
|
|
2105
2105
|
if (gisMap != null) {
|