25
Views
1
Comments
[OutSystems Maps] Map moving back to center with refresh until I zoom in/out
Question
OutSystems Maps
Forge asset by OutSystems
Application Type
Mobile

Hello I'm having a problem with the Maps and hoping to find a solution. In my map component I have the calculated center of my map which starts initially as the users starting location when they opened the screen. This center of the map can be moved to different spots based on different things I allow inside the app. Then I have a blue dot that represents where the user actively is. This is my second marker. Its location gets updated as the user moves around based on the Location Plugin. 

The problem I'm having is that when the user moves locations and that updates the marker for the users dot it will go back to the center of my map even though that marker was not updated at all. It will do this until I zoom in/out. Then it will no longer refresh back to the center of the map. As you can see I do have the respect user zoom as true.

Attached is where I have not zoomed in/out and move you see that once I move and it detects that movement it refreshes back to the center of the map. (Which is very close to the location dot as the center is my initial location). Then in the second attachment I zoom in and then move. You can see it does not refresh to the center of the map once the marker updates. I had to keep the videos short to fit the max file size. So I apologize for it not being more clear. 

I have tried this solution but it did not work for my use case. I have done some similar work on the API as seen here, but this is a slightly different use case as well. Appreciate any and all help!

ZoomedRefresh.mp4
NotZoomedRefresh.mp4
2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Spencer Buhler 

To make this process more efficient and collaborative for the community, please share a sample OML where the issue can be reproduced and isolated. It doesn't need to be the project's OML (I wouldn't recommend sharing the customer's code). That way, someone from the community can review it without investing more time in implementing the use case.

Cheers,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.