示例#1
0
 public LonLat getLonLatFromPixel(Pixel pixel) {
   return new LonLat(MapImpl.getLonLatFromPixel(getJSObject(), pixel.getJSObject()));
 }
示例#2
0
 /**
  * Method: getLonLatFromLayerPx
  *
  * <p>Parameters:
  *
  * @param px - {<OpenLayers.Pixel>}
  * @return {<OpenLayers.LonLat>}
  */
 public LonLat getLonLatFromLayerPx(Pixel px) {
   return new LonLat(MapImpl.getLonLatFromLayerPx(getJSObject(), px.getJSObject()));
 }
示例#3
0
 /**
  * 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));
 }