问题描述
使用icCube 5.0,我使用Google地图创建了一个自定义小部件,在其上绘制了代表区域的多边形.从此小部件的JS代码中,我也能够更新包含这些区域的树过滤器的选定项.因此,用户可以通过树形过滤器或地图选择想要的区域.彼此更新.
Using icCube 5.0, I created a custom widget using google maps, on which I draw polygons representing zones. From the JS code of this widget, I was able to update the selected items of a tree filter containing these zones as well.So that, user could select the wanted zones either by the tree filter OR the Map. Each one updating the other.
我正在使用以下代码来做到这一点:
I was using the following code to do that :
Chart.prototype.producedEvents = function () {
return [vizEventType.onSelection];
};
self.fireEvent(vizEventType.onSelection, new viz.SetSelectionEvent(SelectedZones));
我已升级到版本5.1.6,这无法正常工作.看起来像新viz.SetSelectionEvent"不再起作用了.
I upgraded to version 5.1.6, this is not working. Looks as 'new viz.SetSelectionEvent' is not working anymore.
推荐答案
SetSelectionEvent已移至正确的程序包.尝试使用:
SetSelectionEvent was moved to the proper package. Try to use:
new viz.event.SetSelectionEvent(SelectedZones)
这篇关于iccube从自定义小部件(JS)设置过滤器选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!