[OpenLayers-Users] No red box in Overview Map

Rob Hyx robhyx at gmail.com
Wed Sep 4 05:11:00 PDT 2013


I have a very simple overview map:

var overviewBaseLayer = map.layers[0].clone();
overviewBaseLayer.setIsBaseLayer(true);
var overview = new OpenLayers.Control.OverviewMap({
    maximized:true,
    layers:[overviewBaseLayer]
});
map.addControl(overview);

(Cloning the layer and adding it manually was the only way I could get the
overview map to construct without erroring on "this.baseLayer is null".)

So now the overview map shows up and follows the movements of the map, but
no red box. Any ideas? I'm using OL 2.12 and it does this in both Firefox
17 and IE 8.

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130904/4371f106/attachment.html>


More information about the Users mailing list