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: [EMAIL PROTECTED]
Internet: iis.fh-bingen.de
begin:vcard
fn:Carsten Eider
n:Eider;Carsten
org:Fachhochschule Bingen;Kompetenzzentrum innovative Informationssysteme
adr;quoted-printable:;;berlinstra=C3=9Fe 109;Bingen;RLP;55411;Deutschland
email;internet:[EMAIL PROTECTED]
title:Dipl.-Inf.
tel;work:067214090179
x-mozilla-html:TRUE
url:iis.fh-bingen.de
version:2.1
end:vcard

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to