<div class="gmail_quote"><br>
<div>Hi,</div>
<div>Im using Geoserserver 1.7.4 and Openlayers 2.8.</div>
<div>Im wondering if anyone else has had problems displaying geowebcached images in<br>OpenLayers.<br>The Mrsid images display fine as a cached images singularly but if more than<br>one cached image is added to the map only the first one displays. They don't<br>
display as a combined group layer either.<br> Any suggestion much appreciated.<br> Thanks</div>
<div> <script defer="defer" type="text/javascript"><br> var map;<br> var untiled;<br> var tiled;<br> var pureCoverage = true;<br> // pink tile avoidance<br>
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5;<br> // make OL compute scale according to WMS spec<br> OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;<br> <br> function init(){<br> // if this is just a coverage or a group of them, disable a few items,<br>
// and default to jpeg format<br> format = 'image/png';<br> if(pureCoverage) {<br> document.getElementById('filterType').disabled = true;<br>
document.getElementById('filter').disabled = true;<br> document.getElementById('antialiasSelector').disabled = true;<br> document.getElementById('updateFilterButton').disabled = true;<br>
document.getElementById('resetFilterButton').disabled = true;<br> document.getElementById('jpeg').selected = true;<br> format = "image/jpeg";<br>
}<br> <br> var bounds = new OpenLayers.Bounds(<br> 1717600, 5632800,<br> 1720000, 5636400<br> );<br> var options = {<br>
controls: [],<br> maxExtent: bounds,<br> maxResolution: 14.0625,<br> projection: "EPSG:2193",<br> units: 'm'<br>
};<br> map = new OpenLayers.Map('map', options);<br> <br> <br> // setup single tiled layer<br> one= new OpenLayers.Layer.WMS(<br> "topp:roto1 - Untiled", "<a href="http://localhost:8080/geoserver/gwc/service/wms">http://localhost:8080/geoserver/gwc/service/wms</a>",<br>
{<br> width: '417',<br> layers: 'topp:roto1',<br> styles: '',<br> srs: 'EPSG:2193',<br>
height: '550',<br> format: format<br> }<br> );<br> // setup single tiled layer<br> two = new OpenLayers.Layer.WMS(<br>
"topp:roto2 - Untiled", "<a href="http://localhost:8080/geoserver/gwc/service/wms">http://localhost:8080/geoserver/gwc/service/wms</a>",<br> {<br> width: '417',<br>
layers: 'topp:roto2',<br> styles: '',<br> srs: 'EPSG:2193',<br> height: '550',<br> format: format,<br>
}<br> );<br> map.addLayers([one, two]);</div></div><br>