Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added scrollWheelZoom checkbox #27

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cybermano
Copy link

@cybermano cybermano commented Jul 15, 2023

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 and others added 6 commits July 15, 2023 15:27
Checkbox to disable map zoom on mouse wheel scroll:

InputfieldLeafletMapMarker.module has new field in configuraiton 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
Using the URL /search/ and /reverse/ (with slashes) is no longer supported by nominatim.openstreetmap.org API
Change url from /search/?q=Berlin in /search?q=Berlin

:343 L.Control.Geocoder.jsonp(this.options.serviceUrl + 'search/', L.extend({
change in
L.Control.Geocoder.jsonp(this.options.serviceUrl + 'search', L.extend({

:370 L.Control.Geocoder.jsonp(this.options.serviceUrl + 'reverse/', L.extend({
change in
L.Control.Geocoder.jsonp(this.options.serviceUrl + 'reverse', L.extend({
API search and reverse syntax changed

Nominatim.openstreetmap.org change API: slashes are not yet supported into the url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants