Bbox bounds = GeometryService.getBounds(convertorService .toDto(geodesk.getOwner().getGeometry())); mainMap.setMaxBounds(bounds); mainMap.setInitialBounds(bounds); overviewMap.setMaxBounds(bounds); overviewMap.setInitialBounds(bounds); } catch (GeomajasException e) { Bbox bounds = GeometryService.getBounds(convertorService .toDto(territory.getGeometry())); mainMap.setMaxBounds(bounds); mainMap.setInitialBounds(bounds); overviewMap.setMaxBounds(bounds); overviewMap.setInitialBounds(bounds);
Bbox bounds = GeometryService.getBounds(convertorService .toDto(geodesk.getOwner().getGeometry())); mainMap.setMaxBounds(bounds); mainMap.setInitialBounds(bounds); overviewMap.setMaxBounds(bounds); overviewMap.setInitialBounds(bounds); } catch (GeomajasException e) { Bbox bounds = GeometryService.getBounds(convertorService .toDto(territory.getGeometry())); mainMap.setMaxBounds(bounds); mainMap.setInitialBounds(bounds); overviewMap.setMaxBounds(bounds); overviewMap.setInitialBounds(bounds);