2008/11/21 Dirk Stöcker <[EMAIL PROTECTED]>:
> On Fri, 21 Nov 2008, andrzej zaborowski wrote:
>
>> With gnome-web-photo I modified the wms plugin to calculate the width
>> based on the height of the image, this is pretty simple, but it still
>> relies on the height being correct.
>
> Which means you have a fix for the white border problem for GNOME. Can you
> post this? It will be a hotfix for the WebKit problem as well.

It's this one:
http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20080915/c56a1d87/attachment-0005.txt

The important bit is
+               ratio = Math.cos(Math.toRadians(lat));
+               width = (int)
+                       (img.getWidth() * width / ratio / img.getHeight()) + 1;
if I remember ok.

Cheers.
_______________________________________________
josm-dev mailing list
[EMAIL PROTECTED]
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to