13
Views
2
Comments
[OutSystems Maps] LeafletMap issue with zoom
outsystems-maps
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

We are using the LeafletMap from OutsystemsMaps in our application. Overall, it works as expected. However, a problem has been occurring more frequently and randomly lately: When the page is opened and the Leaflet loads, it does not zoom in on the markers (or show the optimal view) but instead zooms in on Boston. We assume that Boston is the default zoom point, but we cannot explain this erratic and unpredictable behavior. This problem occurs regardless of how many data points are to be displayed.

Unfortunately, I cannot provide an OML as this problem occurs intermittently and unpredictably. Specifically, the issue occurs more frequently in the test and production environments than in the development environment.

Has anyone encountered something like this before? Do you know how to solve it without having to manually calculate the optimal zoom for the points?

Thanks in advance for your help.

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

Hello @Pauline Harlinghausen 

To make this more efficient and collaborative for the community, please share a sample OML where that 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 take a look without investing more time in implementing the use case.

Cheers,
GM

2025-03-12 08-08-27
Pauline Harlinghausen

As I mentioned earlier, unfortunately, I’m unable to provide an OML file since the issue cannot be reliably reproduced on my end. I was hoping that someone in the community might have encountered a similar problem before and could possibly share a solution. 

Thanks again for your response nonetheless.

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