Gesture Handling feature does not work with Drupal 11.0

Created on 20 February 2025, 3 months ago

Problem/Motivation

The "Gesture Handling" feature does not work on Drupal 11.0 default setup with the Geolocation version 4.0.

Steps to reproduce

1. Install a clean Drupal and the module:
drush si -y && drush en geolocation_leaflet_demo -y

2. Edit the demo View: /admin/structure/views/view/geolocation_demo_leaflet_commonmap_marker_interaction/edit/page_1?destination=/geolocation-demo/leaflet-commonmap-marker-interaction and enable the "Gesture Handling" feature in the "Map Features", save the view.

3. Open the View page: /geolocation-demo/leaflet-commonmap-marker-interaction and see that the scroll still gets trapped by the map.

Also, in the Browser Console you can see the errors:

TypeError: map.leafletMap.gestureHandling is undefined
    LeafletGestureHandling https://dt3.ddev.site/modules/contrib/geolocation/modules/geolocation_leaflet/js/MapFeature/LeafletGestureHandling.js:11
    loadFeature https://dt3.ddev.site/modules/contrib/geolocation/js/MapProvider/GeolocationMapBase.js:156
 Loading /modules/contrib/geolocation/modules/geolocation_leaflet/js/MapFeature/LeafletGestureHandling.js failed: TypeError: map.leafletMap.gestureHandling is undefined GeolocationMapBase.js:161:19
    loadFeature https://dt3.ddev.site/modules/contrib/geolocation/js/MapProvider/GeolocationMapBase.js:161

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Leaflet API

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024