Support GDPR / DSGVO / CMP

Created on 20 June 2022, over 2 years ago
Updated 9 January 2024, 12 months ago

Delay initalization of maps until confirmed if required.

📌 Task
Status

Fixed

Version

4.0

Component

Javascript General / Frontend

Created by

🇩🇪Germany christianadamski Berlin, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany thomaswalther Rhein-Main Area

    Please make it DSGVO conform.

    This means: external libraries must be allowed before loading.

    I fixed it very dirty with these lines, and after that I load the map manually:

    cd DRUPAL_WEBROOT
    sed -i -e s/'"geolocation-map-container'/'"NOTALLOWgeolocation-map-container'/ modules/contrib/geolocation/templates/geolocation-map-wrapper.html.twig
    sed -i -e s/' js-show'/' NOTALLOWjs-show'/ modules/contrib/geolocation/templates/geolocation-map-wrapper.html.twig
    sed -i -e s/'attach: function (context, drupalSettings) {'/'attach: function (context, drupalSettings) {\n      return false;'/ modules/contrib/geolocation/js/geolocation-map.js
    
    sed -i -e s/'$libraries = \[\];'/'$libraries = \[\];\
    return $libraries;'/ modules/contrib/geolocation/modules/geolocation_google_maps/geolocation_google_maps.module
    
    
  • 🇩🇪Germany christianadamski Berlin, Germany

    It's already build in v4. See under map settings "Conditional initialization"

Production build 0.71.5 2024