[OpenLayers-Users] Overview map projection problem

Pinizsi Magdolna pinizsi.magdolna at innoteq.hu
Mon Jun 16 10:15:14 EDT 2008


Dear List!

 

I have got a problem about my Overview map.

 

My map is in EPSG:23700, the map is working fine, but the overview map just
displays the upper-right part of my full map. Strange thing is that the
rectangle in the overview map appears in the suitable place (like the
background image was the full map).

 

I tried every method what I can find in the list, but nothing helped.

 

 

 My code is:

 

  map = new OpenLayers.Map('map', {maxExtent: new
OpenLayers.Bounds(426412.5,43772.7890625,937405.625,362941.71875),maxResolut
ion: 'auto', units:'m', projection:'EPSG:23700',controls:[]});

 

 

var overview = new OpenLayers.Control.OverviewMap( {  mapOptions: {
maxExtent: new
OpenLayers.Bounds(426412.5,43772.7890625,937405.625,362941.71875),projection
: "EPSG:23700" } });

 

I also tried this:

 

  var options = {

        projection:"EPSG:23700",

        units: 'm', 

        maxExtent: new
OpenLayers.Bounds(426412,43772,937405.625,362941.71875),

       numZoomLevels:1

    };

 

    var overview = new OpenLayers.Control.OverviewMap({mapOptions:
options});

 

..but the result was the same.

 

Can anyone help?

 

Thanks:

 

Magdi

 

p.s: Here is a sample image about my problem : ftp://itqrt.dyndns.org  user,
pass: guest

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080616/74de259f/attachment.html


More information about the Users mailing list