<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Robert,<br>
<br>
You could try to create your overview map with its own layers:<br>
<br>
new OpenLayers.Control.OverviewMap({<br>
layers: [<br>
new OpenLayers.Layer...<br>
]<br>
});<br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
<br>
On 13-07-10 07:34 AM, Rob Hyx wrote:<br>
</div>
<blockquote
cite="mid:CAF-Pjvx034C_0gKU+PwB3ahZ0H2BQ57kiM6V45AidbtzEAL7qQ@mail.gmail.com"
type="cite">
<div dir="ltr"><span
style="font-size:medium;font-family:Helvetica">Alexandre,
thanks for your reply.</span>
<div style="font-size:medium;font-family:Helvetica"><br>
</div>
<div style="font-size:medium;font-family:Helvetica">
I did try adding the control in via Firebug just from the
console after the page has fully loaded and I get the same
error. From looking at the call stack in FB:</div>
<div style="font-size:medium;font-family:Helvetica">
<br>
</div>
<div style="font-size:medium;font-family:Helvetica">
<div>zoomToExtent(bounds=-180,-90,180,90 { left=-180,
bottom=-90, right=180, more...}, closest=undefined)</div>
<div>zoomToMaxExtent(options=undefined)</div>
<div>createMap()</div>
<div>update()</div>
<div>draw()</div>
<div>addControlToMap(control=Object { layers=[1],
handlers={...}, displayClass="olControlOverviewMap",
more...}, px=undefined)</div>
<div>addControl(control=Object { layers=[1], handlers={...},
displayClass="olControlOverviewMap", more...}, px=undefined)<br>
<br>
</div>
<div>So it's the call to zoomToMaxExtent() in createMap() that
does it. I can see in draw() that there are layers being
assigned to the overview (the baseLayer of the the actual
map object), but no baseLayer property.<br>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>