[OpenLayers-Users] Multiple Vector Layers

Rob Hyx robhyx at gmail.com
Wed Feb 27 08:15:08 PST 2013


Thanks Alexandre. So my next question is, should this layer effect the z
index of the layers it 'contains'? It seems that unless it's the top most
layer (the container), that the vector layers are pushed below the other
WMS layers.

On Wed, Feb 27, 2013 at 8:22 AM, Alexandre Dubé <adube at mapgears.com> wrote:

>  Hi Robert,
>
>   This layer is an OpenLayers.Layer.Vector.RootContainer object.  It gets
> automatically created when you specify an array of layers to the
> SelectFeature control.  In short, it was created to solve the "I can't
> click on vectors if they are not in the topmost layer" issue.  You can read
> more about this in following ticket :
>
>     http://trac.osgeo.org/openlayers/ticket/1666
>
> HTH,
>
> Alexandre
>
>
>
> On 13-02-26 02:27 PM, Rob Hyx wrote:
>
> Hello all,
>
> I have multiple vector layers on my map, one being just a regular layer I
> plot GeoJSON to, while the others are KML layers. I have them both using
> the same OpenLayers.Control.SelectFeature object, and I noticed a 'phantom'
> layer that is now in the map.layers property called
> 'openlayers.control.selectfeature_<some number>_container'. My question is,
> what is this layer? It seems to effect the z indexing of the KML layers,
> and by that I mean, if the z index of the container is under a raster
> layer, the KML features are also underneath. Does that make sense?
>
> Thanks in advance!
>
> _______________________________________________
> Users mailing listUsers at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
> --
> Alexandre Dubé
> Mapgearswww.mapgears.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>


-- 
*HYX*
http://hyx-music.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130227/33768e02/attachment.html>


More information about the Users mailing list