[josm-dev] ewmsplugin on win32
andrzej zaborowski
balrogg at gmail.com
Fri Nov 21 17:24:07 GMT 2008
2008/11/21 Dirk Stöcker <openstreetmap at dstoecker.de>:
> 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.
More information about the josm-dev
mailing list