Hi list,
I'm using a OpenLayers.Layer.TileCache base layer with a tilesize of 400x400
Everything works great but the overview map, it only shows one state of my
country (the last at the south)
i'm using the same extent for the map and for the overviewmap.
map = new OpenLayers.Map(
{controls: [new OpenLayers.Control.Navigation()],
numZoomLevels: 13,
maxExtent:new OpenLayers.Bounds(-8454321,
-7632541.5,-3611077.5, -2212564),
projection:"EPSG:900913",
tileSize: new OpenLayers.Size(400,400),
maxResolution: 1.40625,
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
scales:
[35000000,10000000,1000000,250000,75000,40000,20000,10000,5000,2000] ,
minScale: 500,
maxScale:35000000
});
baselayer= new
OpenLayers.Layer.TileCache("Map",["/tilecache/tmp/1/"],"mylayer",
{format: "image/gif",
isBaseLayer: true, buffer:1,
maxExtent:new OpenLayers.Bounds(-8454321, -7632541.5,-3611077.5,
-2212564),
maxResolution: 1.40625});
var opciones = {
restrictedExtent: new OpenLayers.Bounds(-8454321, -7632541.5,-3611077.5,
-2212564),
maxResolution: "auto", projection:"EPSG:900913",
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
tileSize: new OpenLayers.Size(400,400),
scales: [350000000],
theme: false};
map.addControl (new OpenLayers.Control.OverviewMap({
mapOptions: opciones ,
div: OpenLayers.Util.getElement("overviewmap")
}));
i'm prety sure that is a tilesize problem, but i'm not able to fixit!!
does anybody can helpme with this???
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/tilesize-problem-with-overviewmap-tp5511620p5511620.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users