<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=132080415-22022012>First make a new
window to hold the overview map, put the function as the listener for
"after_layout". Here is how I declare mine -</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=132080415-22022012></SPAN></FONT><FONT
size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>overview_window = new
Ext.Window({<BR> title: "Overview
Window",<BR> bodyBorder:
false,<BR> closeAction:
"hide",<BR> collapsible:
true,<BR> titleCollapse:
true,<BR> width:
200,<BR> resizable:
false,<BR> closable:
false,<BR> html: '<div
id="overviewmap"></div>',<BR>
listeners:
{<BR>
afterlayout:
{<BR>
fn:
addOverview,<BR>
single:
true<BR>
}<BR> }<BR>
});<BR> overview_window.show();<BR>
overview_window.alignTo(document.body, "bl", [10, -125]);<BR>
<BR> function addOverview() {<BR> var b =
{<BR> div:
Ext.get("overviewmap"),<BR>
mapOptions:
{<BR>
maxResolution:
190,<BR>
minResolution:
190,<BR>
numZoomLevels: 1<BR>
},<BR> id:
"overview_map",<BR> layers:
[layer_Overview.clone()]<BR>
},<BR> a = new
OpenLayers.Control.OverviewMap(b);<BR>
a.isSuitableOverview = function ()
{<BR> return
true<BR> };<BR>
map.addControl(a) <BR> }</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> users-bounces@geoext.org
[mailto:users-bounces@geoext.org] <B>On Behalf Of </B>Robert
Buckley<BR><B>Sent:</B> February 22, 2012 12:30 AM<BR><B>To:</B>
users@geoext.org<BR><B>Subject:</B> [Users] Add overview map to
mappanel<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: arial, helvetica, sans-serif; COLOR: #000; FONT-SIZE: 10pt">
<DIV>Hi,</DIV>
<DIV><BR></DIV>
<DIV>I want to add an overviewmap with an rectangle showing the current extent
of the mappanel and one wms layer as reference.</DIV>
<DIV><BR></DIV>
<DIV>I read this...</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://www.geoext.org/pipermail/users/2010-February/000593.html">http://www.geoext.org/pipermail/users/2010-February/000593.html</A> <BR></DIV>
<DIV><BR></DIV>
<DIV>But cannot see where the following should be place...</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><PRE><I>addOverview: = function() {</I></PRE><PRE><I> var mapOptions = {
</I><I> maxExtent: new OpenLayers.Bounds(180000, 397000,200000,
</I><I> 414000),
</I><I> maxResolution: 500,
</I><I> projection: "EPSG:28992",
</I><I> units: "m"
</I><I> };</I></PRE><PRE><I><BR></I></PRE><PRE><I><BR></I></PRE><PRE><SPAN>..is this part of a panel, or the mappanel?</SPAN></PRE><PRE><SPAN><BR></SPAN></PRE><PRE>does anyone know where this should go...or is there a better method to produce a simple yet effective overview map?</PRE><PRE><SPAN><BR></SPAN></PRE><PRE><SPAN>Rob</SPAN></PRE></DIV></DIV>
<DIV>
<P>
<HR>
[This message has been scanned for security content threats and
viruses.]<BR><BR>[The City of Red Deer I.T. Services asks that you please
consider the environment before printing this e-mail.]<BR>
<P></P></DIV>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</BODY></HTML>