[OpenLayers-Users] Overview map projection problem

Christopher Schmidt crschmidt at metacarta.com
Mon Jun 16 10:17:14 EDT 2008


On Mon, Jun 16, 2008 at 04:15:14PM +0200, Pinizsi Magdolna wrote:
> 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" } });

Your overview map doesn't have a maxResolution. Maybe you should try to
set one.

-- Chris

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

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list