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