[Tilecache] openlayers overviewmap problem

Kevin Kempfer mail at kevinkempfer.de
Sat Oct 27 13:58:50 EDT 2007


Hi,

that's what TileCache returns for the OverviewMap:

An error occurred: can't find resolution index for 2.000000. Available
resolutions are:
[1.40625, 0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125,
0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125,
0.001373291015625, 0.0006866455078125, 0.00034332275390625,
0.000171661376953125, 8.58306884765625e-05, 4.291534423828125e-05,
2.1457672119140625e-05, 1.0728836059570312e-05, 5.3644180297851562e-06,
2.6822090148925781e-06]

Openlayers is trying to fetch:
http://dev/cgi-bin/tilecache/tilecache.py?LAYERS=mylayer&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-180,-90,332,422&WIDTH=256&REPROJECT=FALSE&HEIGHT=256

My tilecache.cfg:
[mylayer]
type=WMSLayer
url=http://localhost/cgi-bin/mapserv?map=/data/classes/mapscript/my.map
layers=world_1-4_west,world_1-4_east,srtm3,oceanseas,cityareas,lakes,coastlines,rivers,politicalboundaries,railroads,roads,highways,airports,placenames
extension=png
maxResolution=1.40625

In openlayers:
var layer_cache_py = new OpenLayers.Layer.WMS( "TileCache",
"http://dev/cgi-bin/tilecache/tilecache.py", {layers: 'mylayer',
reproject: false} );

also tryed:
var layer_cache_py = new OpenLayers.Layer.WMS( "TileCache",
"http://dev/cgi-bin/tilecache/tilecache.py", {layers: 'mylayer'},{
reproject: false} );

and later on:

var ov_options = {element:$('the_ov_map')};
overview = new OpenLayers.Control.OverviewMap(ov_options);
map.addControl(overview);

I use OpenLayers 2.5, TileCache 1.9 in mod_python mode. Normal map tiles
are displayed as expected, problems only appear on the overview map.

Thanks for any suggestions.

Regards,

Kevin.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3249 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20071027/c09c0fef/smime.bin


More information about the Tilecache mailing list