radioman / greatmaps

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

Refresh issue with GMapRoute #108

Open Al-Kashi opened 5 years ago

Al-Kashi commented 5 years ago

Hello, I have an issue with GMapRoute can than be reproduced by running Demo.WindowsPresentation: when running this demo on Remote Desktop on a Windows 2016 Server (couldn't reproduce with another setup) with a Route between two points ("set start", "set end", "Add route", the rendering is correct: image Then I close the Remote Desktop, re-open it on the same server, the window is redrawn and after a split second, the previsouly drawn route has been re-centered on the left-top corner of the map: image When moving the map by drag'n'drop, the route remains on the same left-top corner spot. Zooming in/out makes the route size change, but not its position. Thanks if you have any idea for the source of the trouble

Al-Kashi commented 5 years ago

While trying to debug the whole stuff, when examinating the GMapControl object's Non-public members, there is a slight difference before/after the Remote Desktop closure and re-opening: Before: image After: image

That being said, the way this happens and the how to fix it remains utmostly unclear.