FieldtypeLeafletMapMarker icon indicating copy to clipboard operation
FieldtypeLeafletMapMarker copied to clipboard

Added scrollWheelZoom checkbox

Open cybermano opened this issue 2 years ago • 0 comments

This PR is applicable for ADMIN side on page editing, avoiding map zooming in/out when scrolling along the page.

Checkbox to disable map zoom on mouse wheel scroll:

InputfieldLeafletMapMarker.module has new field in configuration func, one line (:44) added in __construct(), one line (:112) added in ___render() and one class addition in markup to set a specific html class (triggered by JS), on line 159 and 161

InputfieldLeafletMapMarker.js has a check for the html class to set option as map.scrollWheelZoom.disable(), on lines 137-139 InputfieldLeafletMarker_files.zip

cybermano avatar Jul 15 '23 13:07 cybermano