[OpenLayers-Users] popups and z-index
ivan marchesini
ivan.marchesini at gmail.com
Mon Apr 12 04:35:01 EDT 2010
Dear OpenLayers Users,
I'm creating a webMapping application where I'm using more than 85
layers...
my problem arises when I switch on the higher layers (86, 87, 88, an so
on...) and contemporary I click on the map to get a popup:
the popup appears under the layers!!!
It is a problem of z-index (as well explained in the openLayers FAQ) but
I can't figure which is the best way to solve this problem
Since I'm calling the popup by means of this call:
______________________
info_wms = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://geoserver.irpi.cnr.it/geoserver/wms',
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(evento) {
mapPannello.map.addPopup(new
OpenLayers.Popup.FramedCloud(
"chicken",
mappa.getLonLatFromPixel(evento.xy),
null,
evento.text,
null,
true
));
}
}
});
mappa.addControl(info_wms);
info_wms.activate();
_____________________
is it possible to add to the eventListenerssomething something like
this :
viewport.getComponent('mapPannello').map.popups[0].div.style.setProperty("z-index","900") ?????
I have tried but without success.. :-(
can you suggest me some example or some old nabble discussion about this
problem?
many thanks
Ivan
--
Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt.
Preferisco formati liberi.
Please try to avoid to send me .dwg, .doc, .xls, .ppt files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format
Ivan Marchesini
Perugia (Italy)
Socio fondatore GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
e-mail: marchesini at unipg.it
ivan.marchesini at gmail.com
fax (home): +39(0)5782830887
jabber: geoivan73 at jabber.org
skype: geoivan73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100412/b6784594/attachment.bin
More information about the Users
mailing list