[OpenLayers-Users] show overview immediately

Huub Fleuren huub.fleuren at geodan.nl
Thu Oct 25 13:08:41 EDT 2007


Outch! I missed the last line

Great tip anyway,  thanks. :-)


Espen Isaksen wrote:
> Here is how:
>
> http://openlayers.org/dev/examples/overviewmap.html
>
> Espen
>
> On 25/10/2007, huub fleuren <huub.fleuren at geodan.nl> wrote:
>   
>> 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
>> -------------------------------------
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>     
>
>
>
>
>   




More information about the Users mailing list