From e9ffef03c7442b165c8cd4dd3bd668485242d359 Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Thu, 9 Feb 2012 10:33:24 +0100 Subject: [PATCH] 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 --- lib/OpenLayers/Map.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index b8e976851c..f96ac6f834 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -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