[OpenLayers-Users] zIndex and Base Layer

bartvde at osgis.nl bartvde at osgis.nl
Mon Mar 8 04:02:12 EST 2010


What type is your base layer? WMS?

If  so, you can use allOverlays: true on your MAP object.

Best regards,
Bart

> Hi,
>
> Here is my code,
>
> layer_map is my base layer. I put it in order to display my map. As I
> noticed layer_wms1 and layer_wms2 are not mine. It uses wms server from
> other companies.
>
> map.addLayer(layer_wms1);
> map.addLayer(layer_wms2);
> map.addLayer(layer_map);
>
> In this configuration my layer_map doesn't display up to the other layers.
>
> Do you understand ?
>
> Maria
>
>
> 2010/3/5 Christopher Schmidt <crschmidt at metacarta.com>
>
>> On Fri, Mar 05, 2010 at 09:10:34AM +0100, Maria Neywell wrote:
>> > I’m using some wms layers which don’t belong to me (are not mine).
>> Only
>> the
>> > base layer is mine and I need to put it up to the others.
>>
>> Perhaps providing your existing code/HTML page would help clarify the
>> current situation and what you plan to do.
>>
>> -- Chris
>>
>> > Maria
>> >
>> >
>> > 2010/3/3 Christopher Schmidt <crschmidt at metacarta.com>
>> >
>> > > On Wed, Mar 03, 2010 at 02:54:58PM +0100, Maria Neywell wrote:
>> > > > Hi list,
>> > > >
>> > > >
>> > > >
>> > > >                 The OpenLayer’s doc explains that “Base Layers
>> always
>> > > > display below overlay layers”. Is it a fatality or is it possible
>> to
>> have
>> > > > the Base Layer always on top of the others layers ? I need to have
>> my
>> > > Base
>> > > > Layer in front of the my others layers.  Is there any hack ?
>> > >
>> > > Why is it a base layer if you want it over the top of other layers?
>> > >
>> > > -- Chris
>> > >
>> > > >
>> > > >
>> > > >
>> > > > Thanks in advance,
>> > > >
>> > > > Cheers,
>> > > >
>> > > > Maria
>> > >
>> > > > _______________________________________________
>> > > > Users mailing list
>> > > > Users at openlayers.org
>> > > > http://openlayers.org/mailman/listinfo/users
>> > >
>> > >
>> > > --
>> > > Christopher Schmidt
>> > > MetaCarta
>> > >
>>
>> --
>> Christopher Schmidt
>> MetaCarta
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list