AmCharts 显示所有行描述

AmCharts show all line descriptions

我正在使用 amCharts 来显示地图。单击图标后,我想缩放并显示行中定义的所有 "description" 标签。我添加了 属性 map.allowMultipleDescriptionWindows = true; 以一次显示更多描述。然后我添加了监听器来处理点击事件,但它导致了循环。

然后我在缩放事件中编辑了代码 - 当我点击“3”图标时,我得到所有的线对象并调用 map.clickMapObject(line); 但问题是描述显示在我的光标位置并且我需要它位于此处的行位置:

请问有解决办法吗? 这就是我定义线条和描述的方式:

map.dataProvider.areas = [
            {
                id: "CZ",
                "title": "Czech republic",
                "lines": [
                    {
                        id: PLarrowId,
                        groupId: groupId,
                        "arc": 0,
                        "selectable": true,
                        "color": "rgba(0,0,0,0.8)",
                        "thickness": 2.8,
                        "dashLength": 0,
                        "longitudes": [
                            26.9098,
                            31.8658
                        ],
                        "latitudes": [
                            53.851,
                            55.8603
                        ],
                        "arrow": "start",
                        "arrowSize": 16.8,
                        "description": "<table><tr><td>1</td><td>2</td><td>3</td></tr><tr><td>4</td><td>5</td><td>6</td></tr></table>",
                        "title": "Table 2"
                    },

解决方案是设置描述 windows 属性 descriptionWindowLeftdescriptionWindowTop 硬编码。由于文档原因,如果未设置这些,则描述位于鼠标指针附近

http://docs.amcharts.com/3/javascriptmaps/MapLine#descriptionWindowLeft