diff --git a/ui/src/app/widget/lib/map-widget2.js b/ui/src/app/widget/lib/map-widget2.js index 79050670b5..08ce754724 100644 --- a/ui/src/app/widget/lib/map-widget2.js +++ b/ui/src/app/widget/lib/map-widget2.js @@ -860,9 +860,9 @@ const commonMapSettingsSchema = "default": true }, "disableScrollZooming": { - "title": "Disable scroll zooming", - "type": "boolean", - "default": false + "title": "Disable scroll zooming", + "type": "boolean", + "default": false }, "latKeyName": { "title": "Latitude key name", @@ -1004,7 +1004,7 @@ const commonMapSettingsSchema = "form": [ "defaultZoomLevel", "fitMapBounds", - "disableScrollZooming", + "disableScrollZooming", "latKeyName", "lngKeyName", "showLabel", @@ -1117,9 +1117,9 @@ const imageMapSettingsSchema = "default": "" }, "disableScrollZooming": { - "title": "Disable scroll zooming", - "type": "boolean", - "default": false + "title": "Disable scroll zooming", + "type": "boolean", + "default": false }, "xPosKeyName": { "title": "X position key name", @@ -1238,7 +1238,7 @@ const imageMapSettingsSchema = }, "imageEntityAlias", "imageUrlAttribute", - "disableScrollZooming", + "disableScrollZooming", "xPosKeyName", "yPosKeyName", "showLabel", diff --git a/ui/src/app/widget/lib/openstreet-map.js b/ui/src/app/widget/lib/openstreet-map.js index 710c29869e..7f79fc976e 100644 --- a/ui/src/app/widget/lib/openstreet-map.js +++ b/ui/src/app/widget/lib/openstreet-map.js @@ -34,7 +34,7 @@ export default class TbOpenStreetMap { this.map = L.map($containerElement[0]).setView([0, 0], this.defaultZoomLevel || 8); if (disableScrollZooming) { - this.map.scrollWheelZoom.disable(); + this.map.scrollWheelZoom.disable(); } var tileLayer = L.tileLayer.provider(mapProvider);