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 is blank)

$
0
0
I want to print different image of the map, but the image is blank because the tile doesn't have the time to load.
            GMapControl1.ZoomAndCenterRoute(m_route)
            bigimg = GMapControl1.ToImage()

            GMapControl1.ZoomAndCenterMarkers("OverlayOne")
            GMapControl1.Zoom -= 4

            aimg = GMapControl1.ToImage()

            GMapControl1.ZoomAndCenterMarkers("OverlayTwo")
            GMapControl1.Zoom -= 4
            bimg = GMapControl1.ToImage()
Is there any way to know if the tile is loaded without working with the event ?

I would love to make this
GMapControl1.ZoomAndCenterMarkers("OverlayOne")
GMapControl1.Zoom -= 4
GMapControl1.WaitTilesToLoad
aimg = GMapControl1.ToImage()

Viewing all articles
Browse latest Browse all 3384


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