Steve,
I would attach an event handler to the moveend or zoomend event off of
your master map, and move the slave to match. This assumes that both are in
the same projection of course :-)
Something like:
// assuming that your main map is in "var master"
master.events.register('moveend', master, mapMoveEnd);
and then have a funcitno mapMoveEnd that did a slave.setCenter based
off of the new values in master (master.getCenter() and master.getZoom()).
We have something similar for setting up the map in the print preview page
on our hud site.
John
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Woodbridge
Sent: Thursday, July 05, 2007 6:54 PM
To: openlayers user list
Subject: [OpenLayers-Users] How do I do side by side maps the nav in sync?
Hi,
I thought there was an example for this, but I can't find it.
I need to generate a page with two OL maps that are side by side each
serving different data, but I need them to navigate in sync. I can live
with only one map having navigation controls, so there is a master/slave
relationship if that simplifies things. Is there a demo example for
this? Is anyone doing this? Can you send me a link?
Any help would be greatly appreciated.
-Steve
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the sender. This message
contains confidential information and is intended only for the individual
named. If you are not the named addressee you should not disseminate,
distribute or copy this e-mail.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users