Hello,
We are receiving multiple warnings and errors when using the Outsystems Maps component that are beginning to affect our runtime behavior. I tried updating the component to the newest available, v1.6.7, but that doesn't seem to have made a difference.
Most notably is the "[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive." error which occurs for every marker on our map. This didn't used to affect the app, but as we have grown and now have over 4,000 markers on an individual map, it is causing the entire screen to freeze and have to be force exited. We have since split the map into multiple different screens to get around this, but our clients would much prefer to have all markers on one map if possible.
We are also seeing this warning - "google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead. The feature will continue to work and there is no plan to decommission it." I don't think this warning is causing the break to the map since it says it will continue to work, but it seems to be related to the other warning that are causing the map to break. I attached a screenshot of both warnings in the console.
Overall, it seems like both of these warnings are coming straight out of the Outsystems Maps component and therefore I can't figure out a fix on my end. Is there any plan to update the Outsystems Maps component to comply with these two warnings? Is there any potential workaround in the meantime?
Thanks,
Charlie Highum
Hello @Charlie Highum
Thank you for the quick feedback.
Cheers,GM
Thanks for reaching you.
Could you kindly share an oml where we can replicate that? Can you also expand on what you mentioned by "beginning to affect our runtime behavior"? Which are the behaviors you're seeing? Those warnings from what I can see from your screenshot, seem to come directly from the Google Maps library, but without sharing something where we can reproduce it we can't help much.
UPDATE:
GM,
The behaviors we are seeing vary when trying to load the map with 4500+ markers. Worst case it will try loading for a while then freeze the screen completely until the browser, in my case Chrome, prompts me to force exit the page. In other scenarios for other users it has failed with an error message that the browser is out of memory. I've noticed it will usually load eventually if I do not scroll down the screen or do anything else to interfere while it is loading, otherwise it will freeze immediately.
The warning about the addDomListener() seems to come from Google Maps directly, the one that is actually causing the problems looks more like it's coming directly from the browser or platform due to something that is missing in the Outsystems Maps component.
I have attached a simple oml that can be used to show these warnings occurring but not affecting the runtime behavior. You would have to hook it up to a fairly large dataset in order to show the breaking behavior.
Charlie