<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=Windows-1252>
<META content="MSHTML 6.00.6002.18167" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>if you want an overview map in an extjs panel
separate from the main map panel, I'm fairly certain that you would need to
instead instantiate a new map panel with the overlay layers and hook up the main
map pan & zoom events to make appropriate changes to the overview
map.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This may be a good idea for a new widget. If others
are interested in such functionality, I can file a ticket.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=nik1166@googlemail.com
href="mailto:nik1166@googlemail.com">Nils Krueger</A> </DIV>
<DIV><B>Sent:</B> Tuesday, February 23, 2010 11:39 AM</DIV>
<DIV><B>To:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] OverviewMap</DIV></DIV></DIV>
<DIV><BR></DIV>Hello...<BR><BR>I would like to show the OverviewMap in an own
suitable panel display.<BR>Unfortunately, it doesn’t work. If so, is there any
example? Or can anybody show me how to do this.<BR><BR>Thank you for your
help!<BR><BR>Nils<BR><BR><html><BR><head><BR>
<title>OverMap</title><BR> <!--link
rel="stylesheet" type="text/css" href="<A
href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css">http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css</A>"
/--><BR> <link rel="stylesheet" type="text/css"
href="./lib/ext/resources/css/ext-all.css" /><BR>
<BR> <!--script type="text/javascript" src="<A
href="http://extjs.cachefly.net/builds/ext-cdn-771.js">http://extjs.cachefly.net/builds/ext-cdn-771.js</A>"></script-->
<BR> <script type="text/javascript"
src="./lib/ext/adapter/ext/ext-base.js"></script><BR>
<script type="text/javascript"
src="./lib/ext/ext-all.js"></script><BR>
<BR> <script src="<A
href="http://openlayers.org/api/2.8/OpenLayers.js">http://openlayers.org/api/2.8/OpenLayers.js</A>"></script><BR><BR>
<BR> <script src="./lib/GeoExt/script/GeoExt.js"
type="text/javascript"></script><BR><BR><BR>
<script type="text/javascript"><BR> var panel,
map;<BR> Ext.onReady(function(){<BR>
<BR> var options_31467 =
{<BR>
projection: new
OpenLayers.Projection("EPSG:31467"),<BR>
controls: [],
<BR>
maxExtent: new OpenLayers.Bounds(3336848, 5208708, 3661609,
5575555),<BR>
maxResolution: "auto",<BR>
numZoomLevels:
20,<BR>
units: 'm',<BR>
};<BR><BR><BR> // create a new
map<BR> map = new
OpenLayers.Map('map', options_31467);<BR>
<BR> // create base layer
<BR> var KreiseBW = new
OpenLayers.Layer.WMS(<BR>
"KreiseBW",<BR>
"/geoserver/wms",<BR>
{<BR>
layers: 'topp:KreiseBW',<BR>
isBaseLayer:true,<BR>
}<BR>
<BR>
);<BR>
<BR>
// create overview map<BR> var ovMapLayer =
new OpenLayers.Layer.WMS(<BR>
"Kreise", <BR>
"/geoserver/wms", <BR>
{<BR>
layers: 'topp:BW',<BR>
}<BR> );<BR>
<BR> var ovMap =
{<BR>
mapOptions:
{<BR>
projection:
map.getProjection(),<BR>
maxExtent:
map.getMaxExtent()<BR>
},<BR> layers:
[ovMapLayer]<BR>
};<BR> <BR>
//add Layers<BR>
map.addLayer(KreiseBW);<BR>
<BR> //add Controls<BR>
map.addControl(new
OpenLayers.Control.LayerSwitcher());<BR>
map.addControl(new OpenLayers.Control.Navigation());<BR>
map.addControl(new
OpenLayers.Control.PanZoomBar({zoomWorldIcon: 'true'}));<BR>
<BR>
//map.addControl(new
OpenLayers.Control.OverviewMap(ovMap));<BR>
<BR>
map.zoomToMaxExtent();<BR><BR> //create
layout<BR> var overmap = new
Ext.Panel({<BR> title:
'Overmap',<BR> //
???<BR> control: new
OpenLayers.Control.OverviewMap(ovMap),<BR>
//items: ovmap, <BR>
height:150<BR>
});<BR><BR> var toc = new
Ext.Panel({<BR>
title:'TOC',<BR> html:
'&lt;empty panel&gt;',<BR>
cls:'empty'<BR>
});<BR>
<BR> var west = new
Ext.Panel({<BR>
region:'west',<BR>
margins:'5 0 5
5',<BR>
split:true,<BR>
width:
210,<BR>
layout:'accordion',<BR>
items: [overmap, toc]<BR>
});<BR><BR> var map_panel = new
GeoExt.MapPanel({<BR>
region:'center',<BR>
map: map,<BR> });<BR>
<BR> var view = new
Ext.Viewport({<BR>
layout:'border',<BR>
items:[west,
map_panel]<BR>
});<BR> });<BR>
</script><BR></head><BR><body><BR></body><BR></html><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>