[OpenLayers-Users] overview control
huub fleuren
huub.fleuren at geodan.nl
Fri Oct 26 07:57:41 EDT 2007
Hi,
Struggling with overview control, image attached (if the moderator
allows it later this day).
The overview does not show the max view of the map. The rectangle
determines the complete map of the overview.
The overview does not react to the zoom of ZoomBar actions. It does
react to pan of ZoomBar actions. mouseactions pan the overview. zoom of
overview is then effected, but not as expected
I tried with and without scalesettings on the mainmap. with different
min/max ratios for overview.
using EPSG:28992
basically following code of the overview.html example
wms["webstreets"] = new OpenLayers.Layer.WMS.Untiled( "webstreets",
"/mapserver.exe?",
{layers:
'layer_1,layer_2,layer_3,layer_4,layer_5,layer_6',format: 'image/png',
transparent: false},
{isBaseLayer:true});
map.addLayers([wms["webstreets"]]);
var options = {
layers: [wms["webstreets"].clone()],
minRatio: 8,
maxRatio: 128
};
var overview = new OpenLayers.Control.OverviewMap(options);
map.addControl(overview);
map.setCenter(new OpenLayers.LonLat(155000, 465000), 0);
overview.maximizeControl();
--
=====================================
Geodan IT b.v.
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)
-------------------------------------
Tel: +31 (0)73 - 692 5151
Fax: +31 (0)73 - 692 5150
Mobiel:
-------------------------------------
Postadres / mailing address
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
E-mail: huub.fleuren at geodan.nl
Website: www.geodan.nl
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------
More information about the Users
mailing list