[Users] really strange..: "burried popup"
Matt Priour
mpriour at kestrelcomputer.com
Wed Apr 7 18:37:59 CEST 2010
I can confirm that this is a problem and that you need some way of managing the number of layers that are actually reserved space on the map or listen for a create / open / or show event on the popup and adjust it's z-index at that time.
I had this problem when we auto-generated layers from a WMS capabilities doc that contained 128 layers. The popups would show under the layers for the last 1/2 of the layers. It was a very frustrating bug as I was not aware of the OL FAQ entry on this problem at the time.
Matt Priour
Kestrel Computer Consulting
From: Ryan Williams
Sent: Wednesday, April 07, 2010 10:29 AM
To: users at geoext.org
Subject: Re: [Users] really strange..: "burried popup"
Ivan,
the OpenLayers wiki (http://trac.openlayers.org/wiki/FrequentlyAskedQuestions) has an FAQ on this, it says:
What is the maximum amount of layers I can have in my OpenLayers Map?
The limit is about 75. After that, layers can appear above popups. This has to do with the z-index in CSS (determines what is 'above' what). Layers (overlay) start at a z-index of 325. Popups start at 750. Controls start at 1000.
Every layer 'takes up' about 5 indexes, so it will reach it's limit at around 75 layers. You cannot have more than 250 popups for the same reason.
If you need more than 75 layers, consider destroying the ones you don't show instead of hiding them and recreate them when needed.
I haven't encountered this myself yet though, so I don't have any details on how to do the destroying.
Ryan
On 4/7/2010 10:18 AM, ivan marchesini wrote:
I can't solve a strange problem..
If you have sometime to spend go here:
http://alderaan.irpi.cnr.it/test_geoext_06/webgis4.html
1- please click on a the map and you will get the popup... OK this is
correct
2 - now move on the panel "Limiti Amministrativi" (on the right... ) and
choose the Tab "Mappe" switching on the layer "Limiti Amm. - Comuni"
3 - please click on a the map and you will get the popup.. but under the
layer!!!!!!!!!!!!
I can't understand!!!!
this web application contains around 100 layers..
I add these layer to the map in groups:
map.addLayers([layer1,layer2,layer3])
map.addLayers([layer4, layer5, ...])
.....
map.addLayers(LimitiAmmComuni)
I have noted that the problem of the "burried popup" arises only with
the last 14 added layers .. (in fact "Limiti Amm. - Comuni" is the
last one)
any suggestions?? help??
many many thanks...
Ivan
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.437 / Virus Database: 271.1.1/2796 - Release Date: 04/07/10 06:32:00
--
Ryan Williams, GISP
GIS Analyst / Programmer
PAQ Interactive Inc.
107 S State St., Suite 300
Monticello, IL 61856-1968
Office: (217) 762-7955
Mobile: (217) 722-2794
rwilliams at paqinteractive.com
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100407/69a8c026/attachment-0001.htm
More information about the Users
mailing list