Changeset 346 for trunk/geowebcache/src/main/java/org/geowebcache/util/GetCapabilitiesConfiguration.java
- Timestamp:
- 08/22/08 19:27:36 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/util/GetCapabilitiesConfiguration.java
r338 r346 146 146 Layer layer = layerIter.next(); 147 147 String name = layer.getName(); 148 String stylesStr = ""; 148 149 149 150 if (name != null) { 150 151 List styles = layer.getStyles(); 151 String stylesStr = "";152 152 153 StringBuffer buf = new StringBuffer(); 153 154 if(styles != null) { … … 161 162 hasOne = true; 162 163 } 163 }164 //TODO styles are not currently forwarded164 stylesStr = buf.toString(); 165 } 165 166 166 167 double minX = layer.getLatLonBoundingBox().getMinX(); … … 180 181 latToSphericalMercatorY(maxY)); 181 182 183 String[] wmsUrls = {wmsUrl}; 184 182 185 WMSLayer wmsLayer = null; 183 186 try { 184 wmsLayer = getLayer(name, wmsUrl , bounds4326,187 wmsLayer = getLayer(name, wmsUrls, bounds4326, 185 188 bounds900913, stylesStr); 186 189 } catch (GeoWebCacheException gwc) { … … 198 201 } 199 202 200 private WMSLayer getLayer(String name, String wmsurl,203 private WMSLayer getLayer(String name, String[] wmsurl, 201 204 BBOX bounds4326, BBOX bounds900913, String stylesStr) 202 205 throws GeoWebCacheException { … … 230 233 // TODO We're dropping the styles now... 231 234 return new WMSLayer(name, this.cacheFactory, 232 wmsurl, mimeFormats, grids, metaWidthHeight, this.vendorParameters); 235 wmsurl, stylesStr, name, mimeFormats, grids, 236 metaWidthHeight, this.vendorParameters); 233 237 } 234 238
