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:
@@ -613,6 +613,17 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APIMethod: getViewport
|
||||||
|
* Get the DOMElement representing the view port.
|
||||||
|
*
|
||||||
|
* Returns:
|
||||||
|
* {DOMElement}
|
||||||
|
*/
|
||||||
|
getViewport: function() {
|
||||||
|
return this.viewPortDiv;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: render
|
* APIMethod: render
|
||||||
* Render the map to a specified container.
|
* Render the map to a specified container.
|
||||||
|
|||||||
Reference in New Issue
Block a user