Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26555

MapLocation field type broken: make Google Maps API configurable

    XMLWordPrintable

Details

    Description

      The MapLocation Fieldtype no longer works for new installations of eZ Platform as the Google Maps API now requires a valid key:

      We no longer support keyless access (any request that doesn't include an API key). Future product updates are only available for requests made with an API key.*

      Existing installations continue to work with APIs that have been in place before:

      Active domains created before June 22, 2016, continue to be able to access the Google Maps JavaScript API, Static Maps API, and Street View Image API without an API key. They are not affected by keyless access being unavailable for new domains.*

      Because of this the location datatype's map functionality is currently not available at all for new sites and will eventually stop working for existing installations as well.

      To fix the issue the maps field type needs to be updated to accept an API key wherever the map is loaded. Currently this seems to be centralised to the file `ez-googlemapapiloader.js` where the `GMAP_JSONP_URI` parameter should accept a `key` GET parameter that is generated from the Google API service.

      By default this should ship with a default account that works, but it should be configurable per siteaccess / siteaccess group through the `ezplatform.yml` file because individual public sites should be able to use individual keys.

      Ideally this could actually use the `parameters.yml` file, so that a working default is provided, but it would be easy to set / override at installation time / per environment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jani.tarvainen@ibexa.co Jani Tarvainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: