[OpenLayers-Users] ZoomBox Pan in two Mapdivs at the same time

Kris Geusebroek kgeusebroek at xebia.com
Thu Jul 30 07:29:05 EDT 2009


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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Rahn Hanno (rahn)
Sent: Thursday, July 30, 2009 1:23 PM
To: users at openlayers.org
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 

hanno.rahn at zhaw.ch 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090730/a0fd3083/attachment.html


More information about the Users mailing list