public CanvasPath(Geometry geometry) { this.geometry = geometry; bounds = GeometryService.getBounds(geometry); }
public CanvasPath(Geometry geometry) { this.geometry = geometry; bounds = GeometryService.getBounds(geometry); }
public Bbox getBounds() { if (bounds == null && !features.isEmpty()) { for (Feature feature : features) { org.geomajas.geometry.Geometry geom = feature.getGeometry(); if (geom != null) { Bbox b = GeometryService.getBounds(geom); if (bounds == null) { bounds = b; } else { bounds = BboxService.union(bounds, b); } } } } return bounds; }
private void zoomToGeometry() { if (getGeometryStatus().equals(GeometryStatus.ONE)) { Bbox geometryBounds = GeometryService.getBounds(geometryOfCurrentGroup); zoomToRectangleController.performSelection(geometryBounds); } else { Window.alert(MESSAGES.securityGroupWarningCantZoomToGeometry()); } }
Bbox bounds = GeometryService.getBounds(convertorService .toDto(geodesk.getOwner().getGeometry())); mainMap.setMaxBounds(bounds); Territory territory = ((DeskmanagerSecurityContext) securityContext).getTerritory(); if (territory != null) { Bbox bounds = GeometryService.getBounds(convertorService .toDto(territory.getGeometry())); mainMap.setMaxBounds(bounds);
Bbox bounds = GeometryService.getBounds(convertorService .toDto(geodesk.getOwner().getGeometry())); mainMap.setMaxBounds(bounds); Territory territory = ((DeskmanagerSecurityContext) securityContext).getTerritory(); if (territory != null) { Bbox bounds = GeometryService.getBounds(convertorService .toDto(territory.getGeometry())); mainMap.setMaxBounds(bounds);