[OpenLayers-Users] Resolutions problems

Tyler Durden tylersticky at gmail.com
Thu Jul 26 06:40:30 EDT 2007


Hi,
I'm using Openlayers with Mapnik and Tilecache and I can't resolve the
resolutions problem for the bounding box:
bbox=-12.62878,36.27686,-2.79602,43.07739

The maps doesn't appear correctly and my GeoRSS points is out of place.

Tilecache configuration:
===================

[all]
type=MapnikLayer
mapfile=osm.xml
bbox=-12.62878,36.27686,-2.79602,43.07739
maxResolution=0.021972656
resolutions=0.021972656,0.010986328,0.005493164
levels=10
extension=png
srs=EPSG:4326
debug=on

Openlayers:
==========

var bounds = new OpenLayers.Bounds(-12.62878, 36.27686, -2.79602, 43.07739);
 var options = {maxResolution: 0.060253125,
                    numZoomLevels : 10,
                    projection    : "EPSG:4326",
                    controls : controls };

map = new OpenLayers.Map('map', options);
layer_all = new OpenLayers.Layer.TMS("all",
"http://192.168.1.160:8080/", layername: 'all', type:'png'} );
map.addLayer(layer_all);

How can I adjust the resolutions?
What is the diference between maxResolution and resolutions?

Thanks,
Tyler



More information about the Users mailing list