iOS Question googleMap camera change ondrag

cloner7801

Active Member
Licensed User
Longtime User
Hi ,
I get markers with GetVisibleBounds and send NE and SW to my url to get markers
But camera change sub update NE and SW with every change
How can I get bounds when on drag the map and send request to my url
 
Handle the CameraChange event and do whatever you need to do. It is probably not a good idea to send a request with every change. I would have instead waited for the movement to complete and only then make the update.
How can I know movement is completed?
 
Upvote 0
1. Add a global int variable named CameraChangedIndex.

2.
Code: Copy
Sub gmap_CameraChange (Position As CameraPosition)
   CameraChangedIndex = CameraChangedIndex + 1
   Dim MyIndex As Int = CameraChangedIndex
   Sleep(200)
   If MyIndex = CameraChangedIndex Then
       Log("Finished moving for now!")
   End If
End Sub
 
Upvote 0

Similar Threads

Replies
13
Views
6K
  • Article Article
Android Code Snippet [B4X] Custom GoogleMaps
Replies
13
Views
10K
  • Locked
  • Article Article
Replies
39
Views
31K
Back
Top