<br><font size=2 face="sans-serif">Thanks Alexandre,</font>
<br><font size=2 face="sans-serif">More detailed... </font>
<br><font size=2 face="sans-serif">Per example, a user could watch the
whole world and the ov-map will be zoomed on Chicoutimi. Whatever the user
do on the main map (panning, zooming), I want the ov-map to stick on Chicoutimi,
because it is so beautiful ;-)</font>
<br><font size=2 face="sans-serif">But if a layer is selected on the tree
I want both maps to show it.</font>
<br><font size=2 face="sans-serif">So if I understood well your idea I
don't need to add a mapmove event since the ov-map will have a fix position.</font>
<br><font size=2 face="sans-serif">But, cloning layers and add handler
function on each node will do what I expect.</font>
<br>
<br><font size=2 face="sans-serif">Of course, I need to anchor this new
map in the bottom right corner.</font>
<br><font size=2 face="sans-serif">Correct me if I'm wrong</font>
<br><font size=2 face="sans-serif">thanks again</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Alexandre Dube <adube@mapgears.com></b>
</font>
<p><font size=1 face="sans-serif">04/02/2010 03:36 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] Magnifier window</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Hi Steve,<br>
<br>
I think you could do something like that (pseudo-code) :<br>
<br>
Create your original map<br>
Create all your layers and add them to the map<br>
<br>
Create your ov-map<br>
Register a mapmove event to the map to make ov-map follow it<br>
For each layer<br>
Clone it and add it to ov-map<br>
Register a visibilitychange event to a onVisibilityChanged
function<br>
<br>
onVisibilityChanged: function(event)<br>
var layers = ov-map.getLayersByName(this.name); // this is
the layer <br>
the visibility was changed<br>
if(layers && layers.length == 1)<br>
layers[0].setVisibility(this.visibility())<br>
<br>
Do you get the idea ?<br>
<br>
Best regards,<br>
<br>
Alexandre<br>
<br>
Steve.Toutant@inspq.qc.ca wrote:<br>
><br>
> Hi,<br>
> I'm using openlayers with geoext.<br>
> I would like to create a magnifier window. So it is like an overview
<br>
> map with a fix map center and a fix zoom level, but the main map and
<br>
> this overview map share the same geoext tree, so the layers are <br>
> shown/hidden on both maps.<br>
><br>
> I think I can do it if I start with the overview map example, here<br>
> http://www.openlayers.org/dev/examples/example-list.html<br>
><br>
> Does someone have a better idea or already tried this?<br>
><br>
> thanks in advance<br>
> Steve<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@openlayers.org<br>
> http://openlayers.org/mailman/listinfo/users<br>
> <br>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
www.mapgears.com<br>
<br>
</font></tt>
<br>
<br>
<br>