radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
912 stars 408 forks source link

Blurry PNGs #115

Open progdogusmc opened 5 years ago

progdogusmc commented 5 years ago

Hi, I'm developing an app that uses GMap.Net.WindowsPresentation and I've run into an issue where the PNGs we retrieve are blurry when displayed in the control. Has anyone else experienced this? Here's a sample image comparing GMap.Net.WindowsPresentation to Leaflet.

gmap blurry png

Thanks for any help!

Levrum commented 5 years ago

We were able to fix this issue by modifying GMapControl.cs and editing lines 971-972 and 983-985 to remove a strange +0.6 offset in the imgRect and parentImgRect objects. This offset was causing the displayed images to be stretched slightly, causing the blurriness described in the issue.

Attached is the modified source code. Hope this helps someone in the future. GMapControl.zip