35
Views
2
Comments
Solved
[OutSystems Maps] Add a callback to Outsystems Map component
outsystems-maps
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.54.9 (Build 62390)

I am trying to use the Outsystems map component but am having some issues. I have the Google Maps API key setup correctly, and most of the time the maps render perfectly, but sometimes they do not render at all. Whenever I load the map screen in my app, I see a warning that says, "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading." as well as a series of other warnings (see screenshot). How do I add a callback to the Outsystems map component? Will adding a callback fix the rendering issue? Any help or advice on this topic would be greatly appreciated




MicrosoftTeams-image (2).png
Screenshot 2023-05-25 120257.png
MicrosoftTeams-image (1).png
2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Charlie Highum,

Could you please share a module where that can be reproducible and give the steps to reproduce it?
Which version are you using?
In version 1.6.5, we fixed a similar issue since Google API changed how it deals with mandatory callback calls. But it only presented a warning and never blocked the Map initialization. 
We'll wait for the information requested to try to see if this is something new since we can't reproduce and it is the first report of this.

Cheers,
GM

UserImage.jpg
Charlie Highum

I updated the Outsystems Maps to version 1.6.5 and it appears to have fixed the issue for now at least. Thanks for the help!

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