Hi Karsten,
if I remember right you have to set minZoomLevel/maxZoomLevel
examples here:
http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels
Dan
Am 01.02.2011 21:22, schrieb karsten vennemann:
I am using an OL overview map control outside the regular map in an html
div. This is all working fine except that I can not get the map to stay
static (not zoom in or out). I have this - set numZoomLevels: 1 but it
does not work and still is zooming in and out according to the actions
in the main map. The extent rectangle is working fine
var overviewmapoptions = {
projection: new OpenLayers.Projection("EPSG:900913"),
numZoomLevels: 1,
size: new OpenLayers.Size(180, 160),
maxExtent: new
OpenLayers.Bounds(915337.288810922,5929008.24725004,1645335.40214988,6591274.57687713),
layers: [mapnik],
projection: new OpenLayers.Projection("EPSG:900913"),
units: "m"
};
var theOverviewMap = new OpenLayers.Control.OverviewMap({mapOptions:
overviewmapoptions, size: ovmapsize, div: $('container_overview')});
map.addControl(theOverviewMap);
I also tried instead
var theOverviewMap = new OpenLayers.Control.OverviewMap({mapOptions:
overviewmapoptions, size: ovmapsize, numZoomLevels: 1, div:
$('container_overview')});
but no luck either
Any suggestions ?
Cheers
Karsten
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users