@Test public void MapCreationTest() { WebMapServer wms = null; try { wms = new WebMapServer(new URL(wmsURL)); initialBounds = new GeneralEnvelope(new double[] {-22, 31}, new double[] {50, 67}); } catch (Exception e) { log.log(Level.SEVERE, e.toString()); } Layer displayLayer = wms.getCapabilities().getLayer(); for (Layer layer : wms.getCapabilities().getLayerList()) { if (layer.getTitle().toLowerCase().equals(wmsLayer.toLowerCase())) { displayLayer = layer; break; } } try { displayLayer.setBoundingBoxes(new CRSEnvelope(initialBounds)); map = new FXMap(wms, displayLayer, sceneHeight, sceneWidth, initialBounds); } catch (Exception e) { fail("Map creation failed: " + e.getMessage()); } assertTrue(map.isInitialized()); }
public boolean isInitialized() { if (this.wms != null && this.mapContent != null && this.layers.size() > 0 && this.getExtent() != null) { return true; } else { return false; } }
FXMap extends Parent { public boolean isInitialized() { if (this.wms != null && this.mapContent != null && this.layers.size() > 0 && this.getExtent() != null) { return true; } else { return false; } } }
FXMap extends Parent { public boolean isInitialized() { if (this.wms != null && this.mapContent != null && this.layers.size() > 0 && this.getExtent() != null) { return true; } else { return false; } } FXMap(
            WebMapServer wms,
            Layer layer,
            int dimensionX,
            int dimensionY,
            org.opengis.geometry.Envelope bounds); }
FXMap extends Parent { public boolean isInitialized() { if (this.wms != null && this.mapContent != null && this.layers.size() > 0 && this.getExtent() != null) { return true; } else { return false; } } FXMap(
            WebMapServer wms,
            Layer layer,
            int dimensionX,
            int dimensionY,
            org.opengis.geometry.Envelope bounds); @Override ObservableList getChildren(); void add(Node n); boolean isInitialized(); void clearShapes(); void resize(double width, double height); void repaint(); void resetExtent(); void setExtent(ReferencedEnvelope newExtent); ReferencedEnvelope getExtent(); void addLayer(org.geotools.map.Layer layer); List<org.geotools.map.Layer> getLayers(); void setMapCRS(CoordinateReferenceSystem crs); Point2D.Double transformScreenToWorld(Point2D.Double screenPoint); Point2D.Double transformWorldToScreen(Point2D.Double worldPoint); void drawMarker(double xPosition, double yPosition); }
FXMap extends Parent { public boolean isInitialized() { if (this.wms != null && this.mapContent != null && this.layers.size() > 0 && this.getExtent() != null) { return true; } else { return false; } } FXMap(
            WebMapServer wms,
            Layer layer,
            int dimensionX,
            int dimensionY,
            org.opengis.geometry.Envelope bounds); @Override ObservableList getChildren(); void add(Node n); boolean isInitialized(); void clearShapes(); void resize(double width, double height); void repaint(); void resetExtent(); void setExtent(ReferencedEnvelope newExtent); ReferencedEnvelope getExtent(); void addLayer(org.geotools.map.Layer layer); List<org.geotools.map.Layer> getLayers(); void setMapCRS(CoordinateReferenceSystem crs); Point2D.Double transformScreenToWorld(Point2D.Double screenPoint); Point2D.Double transformWorldToScreen(Point2D.Double worldPoint); void drawMarker(double xPosition, double yPosition);  }