Small issue at startup. Seeing only one tile

Topics: General
Oct 18, 2011 at 7:59 PM


Facing small issue here. I just started to use gmap in a project again and it seems there are a lot of new features. Had to figure how to implement it though. No documentation available. No problems, it works, but,.... When I start my app I see only one tile. Only when I resize the map I see all the tiles.

Imports GMap.NET
Imports GMap.NET.CacheProviders
Imports GMap.NET.MapProviders

With map_control
   .Manager.Mode = AccessMode.ServerAndCache
   .MapProvider = GMapProviders.OpenStreetMap
   .MinZoom = 1
   .MaxZoom = 18
   .Zoom = 12
   .Position = New PointLatLng(53.219514, 5.483869)
   .DragButton = Windows.Forms.MouseButtons.Left
End With

Anything that I'm missing? Thanks for the help in advance.

Oct 18, 2011 at 8:08 PM

hay ;}

..again, vb stuff o.O ..well you just need to set up parameters in forms constructor

Oct 18, 2011 at 8:15 PM

Thanks for the reply. What parameters are you talking about?

Oct 18, 2011 at 8:23 PM

the ones you just posted ;}

Oct 18, 2011 at 9:02 PM

Hahahaha. OKay. The weird thing is that I never had to do this in the older versions. Is this new behavior? I only referenced "Core" and "Windowsforms" btw.

Oct 18, 2011 at 9:07 PM

Here's something I just figured out: When I add the code in the map_load-handler it works fine. I create a sub. It works fine now. Thanks.