radioman / greatmaps

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

Winforms .ToImage() Outputting Images With Blank Tiles #113

Closed ajos6183 closed 5 years ago

ajos6183 commented 5 years ago

The .ToImage() function does not appear to wait for the map data to be downloaded before the screenshot is taken. This results in images with blank tiles. Is there any existing capability that would allow GMaps to wait until the map is loaded?

radioman commented 5 years ago

https://github.com/radioman/greatmaps/blob/master/Demo.WindowsForms/Forms/StaticImage.cs

ajos6183 commented 5 years ago

I ended up using the TilePrefetcher but what you are suggesting seems a lot faster, so i will switch to it. Thanks!