array of markers

Topics: Windows Forms
Oct 23, 2011 at 7:18 PM

Hey :)

Is it possible to create an array of markers ?

Oct 23, 2011 at 7:34 PM

everything is possible ;} but what do you mean?

Oct 23, 2011 at 7:58 PM

something like :

Dim marker(12) As New GMapMarkerCross(Form1.GMapControl1.Position)

Oct 23, 2011 at 8:05 PM

?

Oct 23, 2011 at 8:08 PM

instead of 

Dim marker As New GMapMarkerCross(Form1.GMapControl1.Position)

Dim marker1 As New GMapMarkerCross(Form1.GMapControl1.Position)

Dim marker2 As New GMapMarkerCross(Form1.GMapControl1.Position)

i want to have an array of markers  : Marker(i) 


Oct 23, 2011 at 8:13 PM

so whats the problem? ;}

Oct 23, 2011 at 8:21 PM

just tell me if this is correct :

Dim marker() As GMapMarkerCross

in button click event

marker(1).Position = New PointLatLng(Lat, Lon)

overlayOne.Markers.Add(marker(1))

 

i don't get anything in the map ?

 

Oct 23, 2011 at 8:29 PM

i'm not vb expert, i've no idea

Oct 30, 2011 at 3:06 AM

How do u create an array of markers on C#