2013-03-20 64 views
1

我的想法是让工具提示中包含了有关该点的信息, 这些点从WMS层的回, 我尝试以下方法:工具提示WMS与geoext

1与载体层有“graphictitle”时造型的点,它显示一个工具提示, 但与WMS我找不到属性使用它作为工具提示在SLD(WM风格)。

2-当我使用ext tooltip时,它返回错误的位置,因为我不知道目标是什么。

new Ext.ToolTip({ 
     target: 'no target', 
     html: 'A very simple tooltip'  }).show();}) 

3-所以我想使用geoext。

任何人都可以帮忙吗?

回答

0

我发现了如何:)

使用:

showAt([e.xy.x,e.xy.y]);