Package org.geomajas.gwt.client.spatial

Examples of org.geomajas.gwt.client.spatial.Bbox.clone()


      Bbox maxBounds = new Bbox(mapInfo.getMaxBounds());
      Bbox initialBounds = new Bbox(mapInfo.getInitialBounds());
      // if the max bounds was not configured, take the union of initial and layer bounds
      if (maxBounds.isAll()) {
        for (ClientLayerInfo layerInfo : mapInfo.getLayers()) {
          maxBounds = (Bbox) initialBounds.clone();
          maxBounds = maxBounds.union(new Bbox(layerInfo.getMaxExtent()));
        }
      }
      mapView.setMaxBounds(maxBounds);
      mapView.applyBounds(initialBounds, MapView.ZoomOption.LEVEL_CLOSEST);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.