Dynamic markers in Google Map

Widgets & Design

Hi,

I have created an API that returns the closest markers (simple lat/lon elements) to the user and I would like to show it based on where is camera pointed in the google maps. Sadly, if I try to invoke my API and use current device location from the global properties, it seemed like it wasn't updated and the google maps cannot load.

Do you know, how can I ensure that the current user location is used (I checked in the code and probably this is due to this part being async) and the API call is not blocked in the backend query?

What have you tried so far?

I have tried multiple things from other community guides, however none of them allowed me for dynamic update based on the current user location.

Did you check FlutterFlow's Documentation for this topic?
Yes
2 replies