Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7384

[Gmap and Co] Google API needs key

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.7.4, 3.8.1, 4.0M7
    • 3.8, 4.0M6
    • None
    • None

      Currently, we don't set the key of google API in the URL we call to have google map.
      And, obviously, the key becomes mandatory.

      We have this information in the site configuration so we can easily add it when this parameter is informed.

      For exemple, the url becomes :
      __GOOGLE_MAPS_URL = '//maps.googleapis.com/maps/api/js?key=GoogleMapKEY&sensor=false';

      To generate the key, just go to the following link:
      https://developers.google.com/maps/documentation/javascript/get-api-key?hl=fr

      And activate google module (Gmap for exemple) for this key.

          [CMS-7384] [Gmap and Co] Google API needs key

          The geocode widget still do not work with a JS error

          marker.js:22 Uncaught TypeError: Cannot read property 'getBounds' of undefinedOba @ marker.js:22(anonymous function) @ marker.js:21
          

          The map is always centered is the ocean.

          Laurence Aumeunier added a comment - The geocode widget still do not work with a JS error marker.js:22 Uncaught TypeError: Cannot read property 'getBounds' of undefinedOba @ marker.js:22(anonymous function) @ marker.js:21 The map is always centered is the ocean.

          Ill remove the sensor attribute as well since there is a warning in the console 'sensor not required'. See https://developers.google.com/maps/documentation/javascript/error-messages

          Quentin Glinel-Mortreuil (Inactive) added a comment - - edited Ill remove the sensor attribute as well since there is a warning in the console 'sensor not required'. See https://developers.google.com/maps/documentation/javascript/error-messages

            quentin Quentin Glinel-Mortreuil (Inactive)
            lbouchet Loïc Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: