[OpenLayers-Users] Overviewmap using epsg.31467

Dipl. Inf. Carsten Eider eider at fh-bingen.de
Thu May 8 07:30:32 EDT 2008


It works now! THX

But i don't understand why i do have to add these extraoptions within 
the constructor when using epsg:31467 whereas
in epsg:4326 it works automatically?

maybe it is a bug ?

carsten

Emanuel Schütze schrieb:
> On 07.05.2008 16:10, Dipl. Inf. Carsten Eider wrote:
>   
>> thank you for your working example, but it didn't resolve my problem.
>> My overviewmap works like an lens showing the center of my map (see
>> attached image).
>> Any further suggestions ?
>>     
> You have to define maxResolution for the overviewMap! 
> Try it with the code of my example:
> http://dev.openlayers.org/sandbox/emanuel/openlayers/examples/epsg-frida-demo.html
>
> Define a option variable for the overviewmap. For maxResolution you need the 
> horizontal extent of your bounds (here 17003.71). If your ovmap like a lens 
> you have to turn this value.
>
>   var ovmapOptions31467 = {
>      maxResolution: 17003.71/256,
>   };
>
> Then add the mapOptions parameter when you call the OverviewMap constructor:
>   map_31467.addControl(new OpenLayers.Control.OverviewMap(
>      {mapOptions: ovmapOptions31467}));
>
>
> This should be the solution of your problem.
>
> Regards,
> Emanuel
>
>   

-- 
Mit freundlichen Grüßen / Yours faithfully
Carsten Eider

Dipl. Inf. (FH)

Kompetenzzentrum für Innovative Informationssysteme

c/o Fachhochschhule Bingen / University of applied sciences Bingen

Berlinstraße 109
55411 Bingen

Tel: +49 (0) 6721 / 409-179
Fax: +49 (0) 6721 / 409-158
email: eider at fh-bingen.de
Internet: iis.fh-bingen.de 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/users/attachments/20080508/c16373a5/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eider.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
Url : http://openlayers.org/pipermail/users/attachments/20080508/c16373a5/attachment-0001.vcf 


More information about the Users mailing list