Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

New Post: Is possible to know if tiles is loaded without the event completed ?? (Printed image tiles is blank)

$
0
0
OK, i find another solution but it's not really nice.

I understand that it's more of a caching problem so here what i did
            GMapControl1.ZoomAndCenterMarkers("OverlayOne")
            GMapControl1.Zoom -= 2
            For i As Integer = 0 To 20
                GMapControl1.Position = GMapControl1.Position
            Next


            aimg = GMapControl1.ToImage()

            GMapControl1.ZoomAndCenterMarkers("OverlayTwo")
            GMapControl1.Zoom -= 2
            For i As Integer = 0 To 20
                GMapControl1.Position = GMapControl1.Position
            Next

            bimg = GMapControl1.ToImage()
It's seem that the loop let the BG do his caching job for a while so the picture is loaded.
I did try to make it proper work with TileCompleted event but it doesn't work
I guess this code will generate blank tile anyway if the computer is really really fast.

Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>