Error Add Overlay New Point

Topics: Bugs
Nov 26, 2012 at 4:02 PM


When I go to insert a new point on the map, the point is inserted at the center of the control.

To make it appear, you have to zoom in and out, and the point is positioned in the correct position.

How can I fix?

Nov 26, 2012 at 4:25 PM

try new version

Nov 26, 2012 at 4:44 PM

thanks first of all,

also the routes are not shown!

Nov 26, 2012 at 4:56 PM

I recompiled with the new library but still has the problem. My application as WindowsForms

Nov 26, 2012 at 5:04 PM

add you overlay to map.Overlays

Nov 26, 2012 at 5:16 PM

        GMapControl1.Overlays.Add(New GMap.NET.WindowsForms.Markers.GMarkerGoogle(New PointLatLng(Lat, Lng),

Nov 26, 2012 at 5:20 PM

on event MouseDown

Nov 26, 2012 at 5:27 PM

check the demo source.

Nov 26, 2012 at 9:41 PM

I looked in demo.windowform but I did not get results.

the position is'nt correct.

my source is:

    Private Sub GMapControl1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles GMapControl1.Load

        With GMapControl1

            .EmptyMapBackground = Color.White

            .EmptyTileBorders = Pens.White

            .EmptyTileText = ""

            .Width = Panel1.Width

            .Height = Panel1.Height

            .MapProvider = GMapProviders.OpenStreetMap

            .Manager.Mode = AccessMode.CacheOnly

            .Manager.ImportFromGMDB(Application.StartupPath & "\DataExp.gmdb")

            .Position = New PointLatLng(40.8517746, 14.2681244)

                PLC1 = New GMapOverlay("PLC1")

            PLC1.Markers.Add(New GMap.NET.WindowsForms.Markers.GMarkerGoogle(New PointLatLng(40.8517746, 14.2681244),



End Width

End Sub

Nov 28, 2012 at 7:59 AM


I CAN'T RESOLVE! Can you give me support. . . thanks

Nov 28, 2012 at 10:03 AM

turn your brains on ;} it's easy as batshit, ..and i don't like vb...

Nov 28, 2012 at 10:04 AM

On event GmapControl1.MouseDown my code is:

Dim point As PointLatLng = GMapControl1.FromLocalToLatLng(e.X, e.Y)

        Dim ov As New GMapOverlay            

Dim mk As New GMarkerGoogle(point, GMarkerGoogleType.green_dot) 





the point is always connected to the control center.

Nov 28, 2012 at 10:07 AM

add overlays in constructor