<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 69.6pt 2.0cm 69.6pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ooops! <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I just realized my
mistake in the code: <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>instead of </span></font><font
color=black><span lang=EN-GB style='color:black'> var
overview = new OpenLayers.Control.OverviewMap();<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I had </span></font><font
color=black><span lang=EN-GB style='color:black'> var
overview = new OpenLayers.Control.OverviewMap({Options: options});<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>which didn't do the trick
either.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>sorry for the mistake,
thoug!!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Hans-Jörg Stark
[mailto:h.stark@fhbb.ch] <br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Freitag, 5. Januar 2007
12:03<br>
<b><span style='font-weight:bold'>An:</span></b> 'users@openlayers.org.'<br>
<b><span style='font-weight:bold'>Betreff:</span></b> WG: Problems with
OverviewMap</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Hi<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>I would like to put an overview
map to my map using projection 'epsg:21781'. Unfortunately I cannot get it
working. <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>I use the following code:<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> <div
id="map"></div><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> <script
defer="defer" type="text/javascript"><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> var map =
new OpenLayers.Map('map', { projection: 'epsg:21781', maxExtent: new
OpenLayers.Bounds(606800,262500,619100,272400), units: 'm', minScale: '100000',
maxScale: '5000', scales: ['10000', '75000', '50000','40000', '30000', '25000',
'20000', '15000', '10000', '9000', '8000', '7000', '6000', '5000'], 'tileSize':
new OpenLayers.Size(512,512) });<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> var myLoc =
new OpenLayers.LonLat(7.6,47.558);<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> my_wms = new
OpenLayers.Layer.WMS( "citymap",<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
"http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/nafmomNeu/map/citymap.map",
{LAYERS: "citymap", format: 'png', transparent:'true'});<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
my_wms.setIsBaseLayer(true);<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
my_wms.setVisibility(true);<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
map.addLayer(my_wms);<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
map.addControl(new OpenLayers.Control.LayerSwitcher());<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
map.setCenter(myLoc, 13);<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> var options
= {<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
projection: 'epsg:21781',<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
units: 'm',<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
numZoomLevels: 1,<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
layers: [my_wms.clone()],<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
maxExtent: new OpenLayers.Bounds(606800,262500,619100,272400)};<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> var overview
= new OpenLayers.Control.OverviewMap()<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
map.addControl(overview);<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>
overview.maximizeControl();<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'> </script><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>The main map appears as usual
and I can use the zooming, panning, etc. Though I get the following error
message:<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>bounds has no properties<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>file:///C:/.../Openlayers/V2.3/OpenLayers-2.3-rc1/lib/OpenLayers/Map.js<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>Line: 1011<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>The overviewmap container
appears as well – but with no contents. If I click in it or want to move
the red rectangle I get the error: <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>this.ovmap has no properties <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>file:///C:/.../OpenLayers-2.3-rc1/lib/OpenLayers/Control/OverviewMap.js<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>Line: 294<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'>Any help on that?<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></p>
</div>
</body>
</html>