Hi Hanno,

 

I think the easiest way is to let the button control only the first map and 
listen to all map events (or some specific events like panned or zoomed or even 
at a higher level bbox changed) of map1 and  do that same event to map2

 

Cheers Kris

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Rahn Hanno (rahn)
Sent: Thursday, July 30, 2009 1:23 PM
To: [email protected]
Subject: [OpenLayers-Users] ZoomBox Pan in two Mapdivs at the same time

 

Hello list,

 

I have a problem with the zoomBox.

In my Project I have two different map windows. The maps show the same but in 
different times. The Geometries are polygons.

Now I try to realise a rectangle zoom with a button. For this I use the 
NavToolbar Control. 

This works fine for the first window. But now I will use it for the second 
window in the same time. If I zoom into the first map, then the second map 
should zoom in to the same center, zoomlevel, usw..

The Pan should work for both maps, too.

I will only use one button for both maps.

 

Perhaps somebody can help me. Sorry for my bad english and a lot of thanks for 
your help.

 

Greetings

Hanno Rahn

 

------------------------------------------

Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik

ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche 
Ressourcen 

Fachstelle Geoinformatik 

Grüental, Postfach CH-8820 Wädenswil 

Tel +41 (0)58 934 5592

Fax +41 (0)58 934 5580 

[email protected] 

 

 

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to