/** * 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);