<div dir="ltr">Hi Subha, <br><br>I did this way you said:<br><br>var overviewOptions = {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; layers: [DivisaoPolitica],<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; projection: &quot;EPSG:4326&quot;,<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;units: &quot;m&quot;,<br>
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; maxResolution: &quot;360.9912109375&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; overview = new OpenLayers.Control.OverviewMap(overviewOptions);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; map.addControl(overview);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; map.setCenter(new OpenLayers.LonLat(0, 0), 2);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // expand the overview map control<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; overview.maximizeControl();<br><br>DivisaoPolitica is my base layer and the maxResolution is defined on map declaration... <br>I also tried with &quot;0.17578125&quot;... and none works!!<br>
<br>There&#39;s one more error now: <br clear="all"><br>Error: lonLat is null<br>Source: <a href="http://localhost:8080/geoserver/openlayers/OpenLayers.js">http://localhost:8080/geoserver/openlayers/OpenLayers.js</a><br>Line: 265<br>
<br>And it only apears when I set this overview map... <br><br>Any more ideia of what is problem??<br><br>Thanks!<br><br>Rodrigo<br><br>======================================<br>Rodrigo C. Antonialli<br>Rio Claro - SP - Brasil<br>
LinkedIn: <a href="http://www.linkedin.com/in/rcaprofile">http://www.linkedin.com/in/rcaprofile</a><br>Contato: &nbsp;(19) 9757-0370<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rca.cirdan@gmail.com">rca.cirdan@gmail.com</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rcantonialli@gmail.com">rcantonialli@gmail.com</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Skype: rc_antonialli<br><br><br>
<br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 09:49, Subha Ramakrishnan <span dir="ltr">&lt;<a href="mailto:subha@gslab.com">subha@gslab.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Rodrigo wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Every time I try to use this OpenLayers.Control.OverviewMap, it returns me this error...<br>
It also happens with OpenLayers.Control.ScaleLine!<br>
<br>
Here is the code I just copied from OpenLayers examples and pasted into my page!<br>
<br>
// create an overview map control with the default options<br>
 &nbsp; &nbsp; &nbsp; &nbsp;var overview = new OpenLayers.Control.OverviewMap();<br>
</blockquote></div>
You have to mention the overview map options when you are creating &nbsp;an overview map control.<br>
Eg.<br>
var overviewOptions = {<br>
 &nbsp; &nbsp;layers: [overviewLayer],<br>
 &nbsp; &nbsp;projection: &quot;EPSG:4326&quot;,<br>
 &nbsp; &nbsp;units: &quot;m&quot;,<br>
 &nbsp; &nbsp;maxResolution: &quot;0.17578125&quot;<br>
&nbsp;};<br>
&nbsp;overview = new OpenLayers.Control.OverviewMap(overviewOptions);<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
 &nbsp; &nbsp; &nbsp; &nbsp;map.addControl(overview);<br>
 &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;map.setCenter(new OpenLayers.LonLat(0, 0), 2);<br>
 &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;// expand the overview map control<br>
 &nbsp; &nbsp; &nbsp; &nbsp;overview.maximizeControl();<br>
<br>
<br>
And if I set new OpenLayers.Control.ScaleLine while I&#39;m defining map options, it doesn&#39;t work too...<br>
<br>
Like:<br>
<br>
var bounds = new OpenLayers.Bounds(<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;186432.76796875, 7476919.875,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;272697.46640625, 7569333.625<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var options = {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;controls: [<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // setup controls and initial zooms<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new OpenLayers.Control.PanZoomBar(),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new OpenLayers.Control.Navigation(),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new OpenLayers.Control.Scale($(&#39;scale&#39;)),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new OpenLayers.Control.MousePosition({element: $(&#39;location&#39;)}),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new OpenLayers.Control.LayerSwitcher(),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//new OpenLayers.Control.ScaleLine()<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;],<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maxExtent: bounds,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maxResolution: 360.9912109375,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;projection: &quot;EPSG:4326&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units: &#39;m&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map = new OpenLayers.Map(&#39;map&#39;, options);<br>
<br>
Does anybody knows what maybe the problem??<br>
<br>
Thanks for now!<br>
<br>
Rodrigo<br>
<br>
======================================<br>
Rodrigo C. Antonialli<br>
Rio Claro - SP - Brasil<br>
LinkedIn: <a href="http://www.linkedin.com/in/rcaprofile" target="_blank">http://www.linkedin.com/in/rcaprofile</a><br>
Contato: &nbsp;(19) 9757-0370<br></div></div>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:rca.cirdan@gmail.com" target="_blank">rca.cirdan@gmail.com</a> &lt;mailto:<a href="mailto:rca.cirdan@gmail.com" target="_blank">rca.cirdan@gmail.com</a>&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:rcantonialli@gmail.com" target="_blank">rcantonialli@gmail.com</a> &lt;mailto:<a href="mailto:rcantonialli@gmail.com" target="_blank">rcantonialli@gmail.com</a>&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Skype: rc_antonialli<br>
<br>
<br>
<br>
-- <br>
This message has been scanned for viruses and<br>
dangerous content by *MailScanner* &lt;<a href="http://www.mailscanner.info/" target="_blank">http://www.mailscanner.info/</a>&gt;, and is<br>
believed to be clean.<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
 &nbsp;<br>
</blockquote>
<br>
</blockquote></div><br></div>