You cannot reuse layers across maps. You will need to create a set of
new layers for each map:
map1.addLayers(map1_layer1, ...)
map2.addLayers(map2_layer1, ...)
Am 09.02.2011 11:10, schrieb shiv_swcp:
Hi
Iam trying to create 2 map objects (ex: var map1,map2) in the same page
and add same set of layers to both the map objects, but the layers seem
to be getting added to only the newer map object and not the previous one.
ex: map1.addLayers([lyr1,lyr2,lyr3]);
ex: map2.addLayers([lyr1,lyr2,lyr3]);
i have no clue why this doesnt work.
if someone can help.
Regards
Shiv
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Frank BRONIEWSKI
METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN
tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users