allow controls to live outside the map viewport - with changes to the overview map to handle this (#465)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-01-10 21:56:07 +00:00
parent b79607e1db
commit 6284941ea0
2 changed files with 5 additions and 6 deletions

View File

@@ -147,8 +147,7 @@ OpenLayers.Control.OverviewMap.prototype =
// Optionally add min/max buttons if the control will go in the
// map viewport.
if(!this.div.parentNode ||
(this.div.parentNode.className == 'olMapViewport')) {
if(!this.outsideViewport) {
this.div.className = 'olControlOverviewMapContainer';
var imgLocation = OpenLayers.Util.getImagesLocation();
// maximize button div