[OpenLayers-Users] Value of map.getExtent() is not precise?

Christopher Schmidt crschmidt at metacarta.com
Tue Apr 29 16:46:02 EDT 2008


On Tue, Apr 29, 2008 at 03:50:50PM -0300, Pedro Simonetti Garcia wrote:
> Hi all,
> 
> I need a little help here. I'm developing a printing system, but I'm
> getting some
> problem with the extents.
> 
> I'm trying to print the map viewport, so I'm using the map.getExtent() and
> map.getCurrentSize() values and passing it to the server, which calls the
> mapserver and generates the image with the specified extent and size.
> 
> The problem is that the printed area is not exactly the same as showed at
> the viewport. The output area is around 20% larger.
> 
> What I'm doing wrong? How can I precisely calculate the viewport extents?

I can't think of any reason why this shouldn't work.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list