Merge pull request #206 from bartvde/viewportDiv
create APIMethod for obtaining the view port (r=fredj,ahocevar)
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