GMapMarkerRect?

Oct 14, 2009 at 9:58 PM

I'm trying to convert this line to VB:

    GMapMarkerRect mBorders = new GMapMarkerRect(currentMarker.Position);

I can't find the GMapMarkerRect object/type - where might it be?

Coordinator
Oct 14, 2009 at 10:08 PM

Demo.WindowsForms\CustomMarkers\GMapMarkerRect.cs

Oct 14, 2009 at 10:29 PM

Thanks... turns out that isn't what I was after any way.  I'm just trying to add a marker to the map.

In Add_Click I do seem to be adding objects as I can drill down and see them in the IDE, but nothing is showing on the map.

What am I missing?

I'd like to be able to add simple points like the demo which adds a default Google placemark icon and allows me to reposition it with the mouse until I double click. I guess I'm looking in the wrong place in the demo code.

    Dim objects As GMapOverlay

Form_Load()
        objects = New GMapOverlay(map, "MarkersLayer")

Sub Add_Click()
        Dim m As GMapMarker = New GMapMarkerGoogleGreen(map.CurrentPosition)
        m.Size = New Drawing.Size(100, 100)
        m.ToolTipText = "hello world"
        m.TooltipMode = MarkerTooltipMode.Always
        objects.Markers.Add(m)

Coordinator
Oct 14, 2009 at 10:42 PM

map.Overlays.Add(objects);