create APIMethod for obtaining the view port, this is needed by GeoExt to append the map panel items there so that they don't interfere with the zoombox for example

This commit is contained in:
Bart van den Eijnden
2012-02-09 10:33:24 +01:00
parent 85b9d5f7f9
commit e9ffef03c7

View File

@@ -612,6 +612,17 @@ OpenLayers.Map = OpenLayers.Class({
}
}
},
/**
* APIMethod: getViewport
* Get the DOMElement representing the view port.
*
* Returns:
* {DOMElement}
*/
getViewport: function() {
return this.viewPortDiv;
},
/**
* APIMethod: render