/** * Scales the bounds around a LonLat. * * @param ratio * @param origin default is center * @return a new bounds that is scaled by ratio from origin */ public Bounds scale(float ratio, LonLat origin) { JSObject originJsObj = (origin == null) ? null : origin.getJSObject(); return Bounds.narrowToBounds(BoundsImpl.scale(this.getJSObject(), ratio, originJsObj)); }
/** * Scales the bounds. * * @param ratio * @return a new bounds that is scaled by ratio */ public Bounds scale(float ratio) { return Bounds.narrowToBounds(BoundsImpl.scale(this.getJSObject(), ratio, null)); }