[OpenLayers-Trac] does OpenLayers tms layer can use on geowebcache
tms service
OpenGSC
945070223 at qq.com
Sun May 13 23:05:24 EDT 2012
hello sir :
I'm a OL user from china,I find OpenLayers can use tms service from tilecache,but instead geowebche,I find it does not.
var tms = new OpenLayers.Layer.TMS(
"1608",
"http://localhost:8081/geowebcache/service/tms/",
{
serviceVersion: "1.0.0",
layername: "topp:tasmania_roads at EPSG:4326 at png",
type: "png",
opacity: 0.4,
//maxExtent:bounds,
isBaseLayer: true,
// tiled: 'true'//,
serverResolutions:[0.0120134375000001,0.00600671875000005,0.004805375,0.0016017916666667,0.000003814418029785156,0.000002682209014892578,0.000001341104507446289]
}
);
//map.addLayers([tiled]);
map.addLayers([tms]);
above is my javascript code,I tracked the flow, and find the request of the url about the tile is not correct,for example
http://localhost:8081/geowebcache/service/tms/1.0.0/topp:tasmania_roads@EPSG:4326@png/2/266/39.png
where http://localhost:8081/geowebcache/service/tms/1.0.0/topp:tasmania_roads@EPSG:4326@png/ is correct(because if I give 0/0/0.png can require the tile),but the file path '2/266/39.png' is not correct.
willing for your answer!
Yours
OpenGSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-trac/attachments/20120514/7fa7adef/attachment.html
More information about the Trac
mailing list