[OpenLayers-Users] Map Extent/Div Size

Christopher Schmidt crschmidt at metacarta.com
Wed Mar 26 10:33:54 EDT 2008


On Wed, Mar 26, 2008 at 12:14:44PM +0100, Gérald Quintana wrote:
> Hello,
> 
> I have a bounding box expressed in degrees and I would like the map
> frame to match  this box. How can I know the CSS size ratio I should
> use for the div element?
> 
> When the map is first loaded, I get a white zone between the map and
> its frame (under). Is it related to the map extent/div element size
> ratio doesn't match?
> 
> Thanks for your help, you have been very helpful for my previous questions,

It sounds to me like you want to:

 1. Make your map div have the same width/height ratio as your bounding
    box.
 2. set maxResolution: 'auto'.   

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list