Closed SvitlanaZakrevska closed 10 months ago
Hi @SvitlanaZakrevska. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
Hi @SvitlanaZakrevska,
Thanks for your reporting and colloboration.
Similar issue has been confirmed here https://github.com/magento/magento2/issues/38286.
Hence We are closing this as a duplicate.
Thanks.
Preconditions (*)
Steps to reproduce (*)
Expected result (*) Map is displayed:
Actual result (*) Error occurs: The same is displayed on the website after saving a block where the map should be.
In console there's an error about overriding Array.from() which supposedly conflicts with Prototype.js - https://stackoverflow.com/questions/76955952/array-from-with-an-implementation-that-doesnt-support-iterables-google-maps Though the error persists after the fix below, the map is visible (see screenshot from expected result section)
After making changes in vendor/magento/module-page-builder/Block/GoogleMapsApi.php:20 from:
const GOOGLE_MAPS_LIBRARY_URL = 'https://maps.googleapis.com/maps/api/js?v=3&key=%s';
to:const GOOGLE_MAPS_LIBRARY_URL = 'https://maps.googleapis.com/maps/api/js?v=3.53&key=%s';
the map is shown