<div dir="ltr"><div><div><div><div><div><div><div><div>All,<br><br></div>I am getting an error when trying to add an overview map to my current map. This is how I am adding the object:<br><br></div>var overviewMap = new OpenLayers.Control.OverviewMap();<br>
</div>map.addControl(overviewMap);<br><br>The error:<br><br></div>TypeError: this.baseLayer is null (OpenLayers.debug.js line 9808)<br></div>if (this.baseLayer.wrapDateLine) {<br><br></div>I've tried adding a check before the line OL errors on and then adding in the baseLayer from the layers property, and that works, but I don't want to be adding in lines of code to OL. Is there something I can pass into the OverviewMap constructor to fix this?<br>
<br></div>The actual map renders fine and it does have a baseLayer so I would expect the overview to just inherit that.<br><br></div>Using OL 2.12 and Firefox 17.0.6<br><br>Thanks in advance!<br clear="all"><div><div><div>
<div><div><div><div><div><div><div><br>-- <br><div style="text-align:left"><b>HYX</b> </div><div style="text-align:left"><a href="http://hyx-music.com" target="_blank">http://hyx-music.com</a></div>
</div></div></div></div></div></div></div></div></div></div></div>