コード例 #1
0
ファイル: Map.java プロジェクト: alf1alf/GWT-OpenLayers
 /**
  * APIMethod: zoomToExtent Zoom to the passed in bounds, recenter.
  *
  * @param bounds
  * @param closest Find the zoom level that most closely fits the specified bounds. Note that this
  *     may result in a zoom that does not exactly contain the entire extent. Default is false.
  */
 public void zoomToExtent(Bounds bounds, boolean closest) {
   MapImpl.zoomToExtent(getJSObject(), bounds.getJSObject(), closest);
 }
コード例 #2
0
ファイル: Map.java プロジェクト: alf1alf/GWT-OpenLayers
 public void zoomToExtent(Bounds bounds) {
   MapImpl.zoomToExtent(getJSObject(), bounds.getJSObject());
 }