13
Views
2
Comments
[OutSystems Maps] how to load markers by proximity to the center defined on the map
outsystems-maps
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Good Afternoon,

I'm developing a mobile app and I use outsystems maps (google maps) to list a series of markers (about 1000 for now). Therefore, when I initially load all the markers at once to the home screen, I get a timeout message. 

How can I first list only a few markers closest to the defined center, and as the zoom changes, load more markers? 

Best regards,

 Eduardo Ferreira 

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Eduardo Ferreira,

To deal with a large amount of markers like the one you estimate to be the minimum, the only way I could suggest would be using the client actions - AddMarker / RemoveMarker RemoveAllMarkers - that were created exactly for that use case, so you don't get some limitations from using OS blocks and use the Google Maps APIs directly.
I made a test in the past with markers 10000, and it worked well without timeouts.
Hope it helps!

Cheers,
GM


UserImage.jpg
Eduardo Ferreira

Thanks Gonçalo, it works now. Now the problem is that I can no longer use the Marker popUp. Is there any alternative or solution for this?

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