The bounds.scale method should be part of the API.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -247,7 +247,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: scale
|
* APIMethod: scale
|
||||||
* Scales the bounds around a pixel or lonlat. Note that the new
|
* Scales the bounds around a pixel or lonlat. Note that the new
|
||||||
* bounds may return non-integer properties, even if a pixel
|
* bounds may return non-integer properties, even if a pixel
|
||||||
* is passed.
|
* is passed.
|
||||||
@@ -261,7 +261,6 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* {<OpenLayers.Bounds>} A new bounds that is scaled by ratio
|
* {<OpenLayers.Bounds>} A new bounds that is scaled by ratio
|
||||||
* from origin.
|
* from origin.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
scale: function(ratio, origin){
|
scale: function(ratio, origin){
|
||||||
if(origin == null){
|
if(origin == null){
|
||||||
origin = this.getCenterLonLat();
|
origin = this.getCenterLonLat();
|
||||||
|
|||||||
Reference in New Issue
Block a user