Formatted
This commit is contained in:
parent
c96b66cae9
commit
df031b3bb0
@ -860,9 +860,9 @@ const commonMapSettingsSchema =
|
|||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"disableScrollZooming": {
|
"disableScrollZooming": {
|
||||||
"title": "Disable scroll zooming",
|
"title": "Disable scroll zooming",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"latKeyName": {
|
"latKeyName": {
|
||||||
"title": "Latitude key name",
|
"title": "Latitude key name",
|
||||||
@ -1004,7 +1004,7 @@ const commonMapSettingsSchema =
|
|||||||
"form": [
|
"form": [
|
||||||
"defaultZoomLevel",
|
"defaultZoomLevel",
|
||||||
"fitMapBounds",
|
"fitMapBounds",
|
||||||
"disableScrollZooming",
|
"disableScrollZooming",
|
||||||
"latKeyName",
|
"latKeyName",
|
||||||
"lngKeyName",
|
"lngKeyName",
|
||||||
"showLabel",
|
"showLabel",
|
||||||
@ -1117,9 +1117,9 @@ const imageMapSettingsSchema =
|
|||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"disableScrollZooming": {
|
"disableScrollZooming": {
|
||||||
"title": "Disable scroll zooming",
|
"title": "Disable scroll zooming",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"xPosKeyName": {
|
"xPosKeyName": {
|
||||||
"title": "X position key name",
|
"title": "X position key name",
|
||||||
@ -1238,7 +1238,7 @@ const imageMapSettingsSchema =
|
|||||||
},
|
},
|
||||||
"imageEntityAlias",
|
"imageEntityAlias",
|
||||||
"imageUrlAttribute",
|
"imageUrlAttribute",
|
||||||
"disableScrollZooming",
|
"disableScrollZooming",
|
||||||
"xPosKeyName",
|
"xPosKeyName",
|
||||||
"yPosKeyName",
|
"yPosKeyName",
|
||||||
"showLabel",
|
"showLabel",
|
||||||
|
|||||||
@ -34,7 +34,7 @@ export default class TbOpenStreetMap {
|
|||||||
this.map = L.map($containerElement[0]).setView([0, 0], this.defaultZoomLevel || 8);
|
this.map = L.map($containerElement[0]).setView([0, 0], this.defaultZoomLevel || 8);
|
||||||
|
|
||||||
if (disableScrollZooming) {
|
if (disableScrollZooming) {
|
||||||
this.map.scrollWheelZoom.disable();
|
this.map.scrollWheelZoom.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
var tileLayer = L.tileLayer.provider(mapProvider);
|
var tileLayer = L.tileLayer.provider(mapProvider);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user