Hi,
I recently added a current weather box (similar to Google Maps app) to one of my apps map but unfortunately after I added this feature the map (that until then could be dragged freely) will now always immediately jump back to the last set coordinates when it is dragged
When I first couldnāt find the problem. luckily I had a backup and that worked fine so I reversed my latest changes and I realized that it only happens when the weather function is included. I use the following blocks and I cannot find any reason for this behavior:
On screen opens ālocationloadedā is set to false. Once the users location is received the map should once center at his current location, then ālocationloadedā is set to true and this time when the location changes it should trigger the weather function
Since I donāt want hundreds of requests within a minute the weather should only update every 5 minutes therefor I check if the current device timestamp is >300 seconds newer than the last time the weather api was called. However for some reason the map will immediately jump back after user drags it when I include the weather feature. Removing it from the āonUserLocationChangeā block solves the issueā¦ Btw the issue does also appear when I remove the āsetTextā blocks within the functionā¦ Because first I thought this might be due to the text refreshing the screen/mapā¦
Any help is appreciated. Is it a problem in my blocks or a bug?