/** * Builds a new WMS layer * * @param wms * @param layer */ public WMSMapLayer(WebMapServer wms, Layer layer) { super(new WMSLayer(wms, layer)); this.wmsLayer = (WMSLayer) this.internal; }
/** * Allows to add another WMS layer into the GetMap requests * * @param layer */ public void addLayer(Layer layer) { addLayer(layer, ""); }
/** * Returns the {@link WebMapServer} used by this layer * * @return */ public WebMapServer getWebMapServer() { return wmsLayer.getWebMapServer(); }
if (lastLayer instanceof WMSLayer) { WMSLayer lastWMS = (WMSLayer) lastLayer; WebMapServer otherWMS = lastWMS.getWebMapServer(); if (otherWMS.equals(wms)) { lastWMS.addLayer(gt2Layer); merged = true; WMSLayer Layer = new WMSLayer(wms, gt2Layer); Layer.setTitle(wmsLayer.prefixedName()); mapContent.addLayer(Layer);
wmsLayer = new WMSLayer(wmsURL); wmsLayer.setImageFormat("image/png"); wmsLayer.setVisibleLayer(visibleLayers); wmsLayer.setOpacity(0.5f); mMapView.addLayer(wmsLayer);
WMSLayer ml = new WMSLayer(wms, layer); ml.getFeatureInfo( bbox, width, height, x, y, "application/vnd.ogc.gml", maxFeatures); List<FeatureCollection> results = new ArrayList<FeatureCollection>();
int featureCount) throws IOException { return wmsLayer.getFeatureInfo(bbox, width, height, x, y, infoFormat, featureCount);
/** * Returns the CRS used to make requests to the remote WMS * * @return */ public CoordinateReferenceSystem getCoordinateReferenceSystem() { return wmsLayer.getCoordinateReferenceSystem(); }
/** * Returns last GetMap request performed by this layer * * @return */ public GetMapRequest getLastGetMap() { return wmsLayer.getLastGetMap(); }
/** * Retrieves the feature info as text (assuming "text/plain" is a supported feature info format) * * @param pos the position to be checked, in real world coordinates * @return * @throws IOException */ public String getFeatureInfoAsText(DirectPosition2D pos, int featureCount) throws IOException { return wmsLayer.getFeatureInfoAsText(pos, featureCount); }
public synchronized ReferencedEnvelope getBounds() { return wmsLayer.getBounds(); }
/** @see org.geotools.map.Layer#dispose() */ public void dispose() { wmsLayer.dispose(); }
/** * Allows to add another WMS layer into the GetMap requests * * @param layer */ public void addLayer(Layer layer) { wmsLayer.addLayer(layer); }