Sub display_mappa_Click
MapPanel.Initialize("")
Activity.AddView(MapPanel, 30%x, 0, 70%x-1dip, 90%y)
If mFragment.IsGooglePlayServicesAvailable = False Then
ToastMessageShow("Google Play services not available.", True)
Else
mFragment.Initialize("Map", MapPanel)
End If
End Sub
Sub Map_Ready
Dim LatLngBoundsBuilder1 As LatLngBoundsBuilder
LatLngBoundsBuilder1.Initialize
gmap = mFragment.GetMap
If gmap.IsInitialized = False Then
ToastMessageShow("Error initializing map.", True)
Else
Dim i As Int
For i = 0 To listaweb.Size - 1
Dim Marker1 As Marker
Dim P As Ptype
P = listaweb.Get(i)
Marker1=gmap.AddMarker(P.latit, P.longi, "Marker #"&i)
LatLngBoundsBuilder1.Include(Marker1.Position)
Marker1.Draggable=True
Next
Dim cp As CameraPosition
cp.Initialize(41.8767711, 12.5415491, 15)
gmap.MoveCamera(cp)
End If
Msgbox("WAIT!!!","")
Dim MarkerBounds As LatLngBounds=LatLngBoundsBuilder1.Build
gmapEX.AnimateToBounds(gmap, MarkerBounds, 128)
End Sub