public LonLat getLonLatFromPixel(Pixel pixel) { return new LonLat(MapImpl.getLonLatFromPixel(getJSObject(), pixel.getJSObject())); }
/** * Method: getLonLatFromLayerPx * * <p>Parameters: * * @param px - {<OpenLayers.Pixel>} * @return {<OpenLayers.LonLat>} */ public LonLat getLonLatFromLayerPx(Pixel px) { return new LonLat(MapImpl.getLonLatFromLayerPx(getJSObject(), px.getJSObject())); }
/** * Scales the bounds around a pixel. Note that the new bounds may return non-integer properties. * * @param ratio * @param origin default is center * @return a new bounds that is scaled by ratio from origin */ public Bounds scale(float ratio, Pixel origin) { JSObject originJsObj = (origin == null) ? null : origin.getJSObject(); return Bounds.narrowToBounds(BoundsImpl.scale(this.getJSObject(), ratio, originJsObj)); }