文档GMap.NET
非常缺乏,但如果您花时间探索它提供的属性和方法,它似乎很容易使用。
这是一个可以帮助您入门的快速示例:
首先,在VB.NET解决方案中创建一个空Form,并添加对GMap.NET库提供的三个DLL的引用。
然后,将此代码粘贴到您的Form1.vb
:
Imports GMap.NET
Imports GMap.NET.MapProviders
Public Class Form1
Private map As GMap.NET.WindowsForms.GMapControl
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
map = New WindowsForms.GMapControl()
Me.Controls.Add(map)
map.Dock = DockStyle.Fill
With map
' Home sweet home...
.Position = New PointLatLng(19.442288, -70.652266)
.MapProvider = MapProviders.GoogleMapProvider.Instance
.MinZoom = 3
.MaxZoom = 17
.Zoom = 16
.Manager.Mode = AccessMode.ServerAndCache
End With
End Sub
End Class
如需进一步的控制帮助,您应该直接联系作者:http:
//greatmaps.codeplex.com/discussions