I use a SQL database with maps to display markers. I would make them invisible markers with the zoom.
if I only have one record in my file .db, this works well.
But if I have multiple record line, the function does not work !
do I have to initialize again sql?
and
if I only have one record in my file .db, this works well.
But if I have multiple record line, the function does not work !
do I have to initialize again sql?
B4X:
For i = 0 To sqlcursor.RowCount -1
sqlcursor.Position = i
'PinsId = sqlcursor.Getint("Id") ' ID
PinsTxt = sqlcursor.GetString("Site") ' Name
PinsLat = sqlcursor.GetDouble("Latitude") ' Lat
PinsLng = sqlcursor.GetDouble("Longitude") 'Lng
m1 = gmap.AddMarker3(PinsLat,PinsLng,PinsTxt,bmp.Bitmap)
Next
sqlcursor.Close
and
B4X:
Sub MapFragment1_CameraChange (Position As CameraPosition)
If gmap.CameraPosition.Zoom > 12 Then
'ToastMessageShow("+ 12",False)
m1.Visible = False
Else
m1.Visible = True
End If
End Sub