[Users] Geoext Popup anchor triangle pointing to location
Manuel Aymerich
maymerich at argongra.es
Thu Dec 16 13:36:01 CET 2010
Hi,
I am using geoext popup together with OL to show the wmsgetfeatureinfo
response from my server (mapserver) on user clicks. Everything is working
great! However I am unable to show the popup anchor little triangle for the
popup. Even though the popup is correctly located on the user click, the
little triangle is not even shown. I would like the triangle to point to
pixel where the user clicked on the map. Here is my code:
var info = new OpenLayers.Control.WMSGetFeatureInfo({
url:
'http://labs.argongra.com/cgi-bin/mapserv?map=/var/datos/SIOSE/maps/SIOSE.ma
p',
title: 'Info:',
maxFeatures: 1,
queryVisible: true,
layers: [Municipios,Densidad_de_Poblacion],
eventListeners: {
getfeatureinfo: function(event) {
if( event.text != "\n" && event.text !=
"") {
new GeoExt.Popup({
//utilizing the GeoExt popup functionality
title: "Info",
autoScroll: true,
map: map,
maximizable: true,
collapsible: true,
//unpinnable: false,
anchored: true,
location:
map.getLonLatFromPixel(event.xy),
html: event.text
}).show();
}
}
}
});
map.addControl(info);
info.activate();
Is this option possible for lonlat location or only for features? What am I
missing? Thanks in advance.
Regards,
Manuel Aymerich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101216/7fc83c1e/attachment.htm
More information about the Users
mailing list