' initialize the MarkersOverlay and add it to the MapView
MarkersOverlay1.Initialize(MapView1, "")
MapView1.AddOverlay(MarkersOverlay1)
' create and initialize 2 Markers
' for Marker1 i'll use a custom icon
Dim Icon As BitmapDrawable
Icon.Initialize(LoadBitmap(File.DirAssets, "my_icon.png"))
Dim Marker1 As Marker
Marker1.Initialize("Home sweet home", "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 52.75610, 0.39748, Icon)
' Marker2 will display the default OSMDroid icon
' the default icon is used if Null is passed as the Icon parameter
Dim Marker2 As Marker
Marker2.Initialize("Elsewhere", "Downham Market", 52.60801, 0.39047, Null)
' create a List and initialize it with the 2 Markers
Dim Markers As List
Markers.Initialize2(Array As Marker(Marker1, Marker2))
' add the List of Markers to the MarkersOverlay
MarkersOverlay1.AddMarkers(Markers)