JoomlaEstateAgency / com_jea

Joomla Estate Agency. A real estate properties management component for Joomla.
11 stars 17 forks source link

Change Maps JavaScript API version #34

Closed Enr62 closed 11 months ago

Enr62 commented 11 months ago

Hi, at the end of June Google sent me this email about a site on a Real Estate Site in Joomla 3 (PHP 8.1):

“Review which of your Maps JavaScript API resources have incompatible usage. Change your application to avoid a disruption in your service. Hello Google Maps Customer, We’re writing to let you know that the Maps JavaScript API will become unavailable to applications using non-compliant libraries, from the Maps JavaScript API version 3.54, releasing to the weekly channel in August 2023. What do I need to know? Some third party libraries emulate newer JavaScript functionality, for browsers that may not support them natively. The Maps JavaScript API will start using some newer functionality in the ECMAScript standard, namely Array.from(). While Array.from() is available and working in all browsers supported by the Google Maps JavaScript API, some applications have code which replaces the working version of this with an invalid version from a library - creating an invalid JS environment. Alternatively, you may specify a version of the Maps JavaScript API lower than v3.54 for the time being, with the caveat that any version is only available for a year. For example, you can specify v=3.53 until April 2024, after which all Maps JavaScript versions will require a fix to your application.”

While waiting for a total renewal of the site, this second temporary solution (also found on Google Maps Platform) would also be fine, then:

“An update affected my application When we update the release channels, it could affect your application. This could occur because your application is relying on undocumented or deprecated features, or because of a bug or bug fix we have introduced. As a temporary workaround, you can reconfigure your application to use an older version. 1 Open the console in your browser developer tools, and look at the value of google.maps.console 2 Update the script tag that loads the API, and request an older versione number”

Now my question is: if I use the JEA extension (Joomla Estate Agency), where do I find the tag to change the version? Thanks for the suggestions