[Users] really strange..: "burried popup"

Ryan Williams rwilliams at paqinteractive.com
Wed Apr 7 17:29:28 CEST 2010


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100407/f0f21f21/attachment.htm 


More information about the Users mailing list