Hi,
you have to include resources/css/popup.css in your html page, and make sure
that the resources/images directory is available and web accessible.
Regards,
Andreas.
On Dec 16, 2010, at 13:36 , Manuel Aymerich wrote:
> 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.map',
>
> 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
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users