[OpenLayers-Users] show overview immediately

huub fleuren huub.fleuren at geodan.nl
Thu Oct 25 04:24:56 EDT 2007


Hi

I don't find a way to expand the overview without first clicking the toggle

    var options = {
      layers: new OpenLayers.Layer.WMS.Untiled( "Overview",
           "http://some.mapserver.nl/background/mapserver.exe/",
             {layers: 
'layer_1,layer_2,layer_3,layer_4,layer_5,layer_6',format: 'image/png', 
transparent: false},
             {isBaseLayer:true}),
      minRatio: 8,
      maxRatio: 128
    };
    overview = new OpenLayers.Control.OverviewMap(options);
    map.addControl(overview);

will show only the toggle.
i tried but
not overview.draw()
not overview.showToggle(false) (which only shows the minimize control)



Regards, Huub

-- 
=====================================
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