Formatted

This commit is contained in:
Sergey Tarnavskiy 2019-04-15 19:22:25 +03:00
parent c96b66cae9
commit df031b3bb0
2 changed files with 9 additions and 9 deletions

View File

@ -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",

View File

@ -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);