コード例 #1
0
ファイル: Map.java プロジェクト: alf1alf/GWT-OpenLayers
 public LonLat getLonLatFromPixel(Pixel pixel) {
   return new LonLat(MapImpl.getLonLatFromPixel(getJSObject(), pixel.getJSObject()));
 }
コード例 #2
0
ファイル: Map.java プロジェクト: alf1alf/GWT-OpenLayers
 /**
  * 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
ファイル: Bounds.java プロジェクト: Kermit/GWT-OpenLayers
 /**
  * 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));
 }