[OpenLayers-Users] layers limit
Christopher Schmidt
crschmidt at metacarta.com
Mon Mar 30 14:55:34 EDT 2009
On Mon, Mar 30, 2009 at 11:38:12AM -0700, T. Vieira wrote:
>
> Hi,
>
> I have a map with 92 layers.
> I have a layer to move a box. I click on it, and when the wfs response arrives, it shows the box highlighted. The problem is that the DragControl of that box isn't reachable, so i can't move it.
> When i take 7 of 92 layers of the list that initialize the map it works fine. Any of the 85 layers works fine. One more layer and the box is not reachable.
>
> Any advice?
>
>
>
> > Layers get placed in the z-index hierarchy based on their "type". There
> > are spaces for 45 (225 / 5) layers between your first "base layer" and
> > your first "overlay".
>
> What type of layers are you talking when you said that are spaces for 45?
> We only have 1 Baselayer, and the others are Overlayers.
>
> Am i mistaked?
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Map.js#L27
Override this in a map option.
> Thanks in advance,
> Tiago Vieira
>
>
>
>
>
> fwiw it's kind of horrendous that we have these things hardcoded in.
> perhaps we ought consider some sort of dynamic z-indexing plan?
>
> e
>
>
> On 1/30/08, Tim Schaub <tschaub at openplans.org> wrote:
> > Hey-
> >
> > Mick Jagger wrote:
> > > Hi,
> > > Is there a limit to the number of layers that OpenLayers supports? I have a page with 63 layers and I get errors with Internet Explorer at layer 60, while Firefox and Opera load the page fine, albeit slowly. Normally there are only a couple layers, but this is an odd case.
> > >
> >
> > Layers get placed in the z-index hierarchy based on their "type". There
> > are spaces for 45 (225 / 5) layers between your first "base layer" and
> > your first "overlay". After this, things start overlapping (base layers
> > over overlays). Similarly, there is room for 65 "overlay" layers (325 /
> > 5) under any "popup" layers. Finally, you get 50 "popup" layers before
> > you start overlapping the controls.
> >
> > None of these numbers matches the limit of 60 that you are asking about,
> > but the idea is that browsers start to break down before either of these
> > thresholds is met.
> >
> > There is likely a better way to do things than adding 60ish layers to
> > your map at a time.
> >
> > Tim
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>
> --
> View this message in context: http://n2.nabble.com/layers-limit-tp1827312p2558926.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list