Sub pon_marca
' initialize the MarkersFocusOverlay and add it to the MapView
MarkersFocusOverlay1.Initialize(MapView1)
MarkersFocusOverlay1.SetInfoWindowBackgroundColor(Colors.Gray)
MarkersFocusOverlay1.SetInfoWindowDescriptionColor(Colors.Cyan)
MarkersFocusOverlay1.SetInfoWindowDescriptionSize(24)
MarkersFocusOverlay1.SetInfoWindowMaxWidth(80%x)
MarkersFocusOverlay1.SetInfoWindowTitleColor(Colors.Red)
MarkersFocusOverlay1.SetInfoWindowTitleSize(30)
MapView1.AddOverlay(MarkersFocusOverlay1)
MarkersOverlay1.Initialize(MapView1, "MarkersOverlay1")
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, "limpieza_1.png"))
Dim Marker1 As Marker
Marker1.Initialize("OTRO", " OTRO ", -33.446920,-70.56859, 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",-33.446920,-70.568594, Null)
' create a List and initialize it with the 2 Markers
Dim Markers As List
' ** example code updated **
' Markers.Initialize2(Array As Marker(Marker1, Marker2)) ' this is the previous code
MarkersOverlay1.AddMarkers(Markers)
End Sub