Package org.geomajas.gwt.client.spatial

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


        for (String featureId : layer.getSelectedFeatures()) {
          Feature f = store.getPartialFeature(featureId);
          if (bounds == null) {
            bounds = f.getGeometry().getBounds();
          } else {
            bounds = bounds.union(f.getGeometry().getBounds());
          }
        }
      }
    }
    if (bounds == null) {
View Full Code Here


          boolean success = false;
          Bbox selectionBounds = new Bbox(0, 0, 0, 0);
          for (Feature feature : features) {
            // if the feature is selected union the bounding box
            if (feature.isSelected()) {
              selectionBounds = selectionBounds.union(feature.getGeometry().getBounds());
              success = true;
            }
          }

          // only zoom when their where really some items selected
View Full Code Here

          boolean success = false;
          Bbox selectionBounds = new Bbox(0, 0, 0, 0);
          for (Feature feature : response) {
            // if the feature is selected union the bounding box
            if (feature.isSelected()) {
              selectionBounds = selectionBounds.union(feature.getGeometry().getBounds());
              success = true;
            }
          }

          // only pan when their where really some items selected
View Full Code Here

    if (!isEmpty()) {
      for (LineString lineString : lineStrings) {
        if (bounds == null) {
          bounds = lineString.getBounds();
        } else {
          bounds = bounds.union(lineString.getBounds());
        }
      }
    }
    return bounds;
  }
View Full Code Here

    if (!isEmpty()) {
      for (Polygon polygon : polygons) {
        if (bounds == null) {
          bounds = polygon.getBounds();
        } else {
          bounds = bounds.union(polygon.getBounds());
        }
      }
    }
    return bounds;
  }
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.