Ejemplo n.º 1
0
 public void setRestrictedExtent(Bounds extent) {
   getJSObject().setProperty("restrictedExtent", extent.getJSObject());
 }
Ejemplo n.º 2
0
 public void setMaxExtent(Bounds extent) {
   getJSObject().setProperty("maxExtent", extent.getJSObject());
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 public int getZoomForExtent(Bounds bounds, boolean closest) {
   return MapImpl.getZoomForExtent(getJSObject(), bounds.getJSObject(), closest);
 }
Ejemplo n.º 5
0
 public void zoomToExtent(Bounds bounds) {
   MapImpl.zoomToExtent(getJSObject(), bounds.getJSObject());
 }