[OpenLayers-Users] tilecache
Марат
mamyashev.marat at gmail.com
Tue Feb 9 06:36:04 EST 2010
Hi,
I've got quiete a trouble here:
1) tilecache is set up the way you have one resolution per one level.
Actually when I use some direct request to get tile like
http://tileserver.com/lv1/ the next request goes to ttp://
tileserver.com/lv2/. Lv is just a zoom here.
And lv1 is actually the first level.
2) JS goes like this
var resolutions = [
60000,
....15 more
];
function init(){
map = new OpenLayers.Map( 'map', {
projection: new OpenLayers.Projection("EPSG:3395"),
resolutions: resolutions //?!?
});
for (var i = 0; i<=15; i++) {
var layer = new OpenLayers.Layer.TileCache("TileCache Layer",
["htttp://tileserver.com/"],
('lv'+(i+1)),
{serverResolutions: resolutions[i]}
);
map.addLayer(layer);
}
map.setCenter(new OpenLayers.LonLat(0, 0), 0);
}
3) Interseting is that the first tile gets well but I don't get further.
Any ideas how to handle this?
--
____________________________________
Summa cum pietate, Marat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100209/bd5b9f6b/attachment.html
More information about the Users
mailing list