Hi everyone,
I've a probelm with the zoom of iGoogleMaps. When I click on the map I'd like to put a marker and that map could zoom to street level (zoom level 16 or more), but the map remain always at level 2.
This is the code I use
There is also the problem that when I put the marker the map doesn't center it: I've tried to use
but it return the error:
I've a probelm with the zoom of iGoogleMaps. When I click on the map I'd like to put a marker and that map could zoom to street level (zoom level 16 or more), but the map remain always at level 2.
This is the code I use
B4X:
private Sub gmap_Click (Point As LatLng)
gmap.CameraPosition.Initialize(Point.Latitude,Point.Longitude,16)
MyPosition.Initialize2(Point.Latitude,Point.Longitude)
If MyMarker.IsInitialized Then
MyMarker.Position = Point
Else
MyMarker = gmap.AddMarker(MyPosition.Latitude, MyPosition.Longitude,"Mia Posizione")
End If
End Sub
There is also the problem that when I put the marker the map doesn't center it: I've tried to use
B4X:
Dim CamPos As CameraPosition
CamPos.Initialize(Point.Latitude,Point.Longitude,16)
gmap.MoveCamera(CamPos)
but it return the error:
B4X:
-[GMSCameraPosition applyToCamera:onMap:]: unrecognized selector sent to instance 0x19eab550