Thursday, July 25, 2024
1 change · saas-17.2
Resolved issues and error corrections
Website maps now wait for address lookup to finish before choosing the map center. This prevents maps from opening in the wrong place when coordinates are not already available, improving visitor experience on location pages.
Original PR description
Before this commit, the map could be wrongly centered if the longitude and latitude were unknown and localized on the fly using the JavaScript Geocoder API, as we did not wait for the result. Now, the code is reorganized as an async function, and we await all the promises before computing the map options.