[OpenLayers-Users] OverviewMapControl config tips?
cmose
cjmose at gmail.com
Thu Jan 3 09:51:36 EST 2008
My map is configured with the following options:
var mapOptions = {
minExtent: new OpenLayers.Bounds(-1,-1,1,1),
maxExtent: new OpenLayers.Bounds(-180,-90,180,90),
restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90),
maxResolution: 0.17578125,
numZoomLevels: 8,
buffer:1
}
and my OverviewMapControl is configured with these options:
var overviewMapOptions = {
mapOptions: {
maxResolution: 0.17578125,
numZoomLevels: 8
}
}
(please forgive any typos as this was hand transcribed - the actual config
is free of typos and works fine with my current TileCache setup).
The issue I have is that the OverviewMapControl is basically useless from
zoom levels 0-3 - the red "extent" rectangle just fills the entire
OverviewMapControl and can't actually be used to drag the map more then a
very minuscule amount. I've looked over the js file but I think I'm just
having a poor comprehension day as I'm not seeing what I can change to try
and alleviate this.
Ideally the draggable rectangle would stay constant size regardless of the
zoom level of the overviewmap/bounds of the "main" map.
Anyone have any hints/tips as to how I can accomplish this or at least
provide a useable overviewmap at zoom levels 0-3?
Thanks!
--
View this message in context: http://www.nabble.com/OverviewMapControl-config-tips--tp14598136p14598136.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list