OpenLayers: Popup z-index
Добавлено: 28 ноя 2010, 22:24
В OL вики сказано:
Попытался, но не смог найти ни в исходниках, ни в CSS место, где устанавливаются данные величины. Можно ли как-то переопределить значения zindex-ов для попапов?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.