[OpenLayers-Users] problem with overviewMap

Valeria Muñoz valemunoz at gmail.com
Tue Sep 15 17:43:02 EDT 2009


Hi

I connect to a tilecache and this will need to deploy at OverviewMap. For
some reason I get an error(resolution error) in the "OverviewMap" and shows
the pink tile

Error:
An error occurred: can't find resolution index for 0.000146. Available
resolutions are:
[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-005, 4.291534423828125e-005, 2.1457672119140625e-005,
1.0728836059570313e-005, 5.3644180297851563e-006, 2.6822090148925781e-006,
1.3411045074462891e-006]
my code:

var mapOptions = {            restrictedExtent:new
OpenLayers.Bounds(-113.5546875,-72.421875,-25.6640625,-2.109375,2),
units: "dd",            numZoomLevels:20};
map = new OpenLayers.Map('map',mapOptions);
layer3 = new OpenLayers.Layer.WMS( "OpenLayers WMS",             "
http://localhost/tilecache/tilecache.cgi", {layers:
'ivregion_d02',transitionEffect: 'resize',format: 'png'} );
map.addLayer(layer3);
map.addControl(new OpenLayers.Control.MousePosition());
map.setCenter(new OpenLayers.LonLat(-71.256437, -29.902194), 17);
if (!map.getCenter()) map.zoomToMaxExtent();
var overview2 = new OpenLayers.Control.OverviewMap();
map.addControl(overview2);


if somebody can help me?

RG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090915/6826a32f/attachment.html


More information about the Users mailing list