[OpenLayers-Users] Different set of overlays for different base layers

Christopher Schmidt crschmidt at metacarta.com
Tue Nov 25 07:48:11 EST 2008


On Tue, Nov 25, 2008 at 01:06:00AM -0800, S.Reena wrote:
> 
> Hi there,
> 
> Is it possible to make 2 base layers such that when I click on one ...some
> overlays are displayed ..while when I click on the second , a different set
> of overlays is displayed.
> 
> If not this then can I make two maps corresponding to the two base layers
> and use it accordingly .

OpenLayers has no direct/automatic support for the former at this time.

However, youc an implement it at the application level by using the
changebaselayer event an adding/removing layers as neccesary.

Good luck,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list