Merge pull request #206 from bartvde/viewportDiv
create APIMethod for obtaining the view port (r=fredj,ahocevar)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user