|
|
|
@ -79,17 +79,18 @@ export default class TbMapWidgetV2 { |
|
|
|
}); |
|
|
|
|
|
|
|
if (mapProvider === 'google-map') { |
|
|
|
this.map = new TbGoogleMap($element, this.utils, initCallback, this.defaultZoomLevel, this.dontFitMapBounds, minZoomLevel, settings.gmApiKey, settings.gmDefaultMapType); |
|
|
|
this.map = new TbGoogleMap($element, this.utils, initCallback, this.defaultZoomLevel, this.dontFitMapBounds, settings.disableScrollZooming, minZoomLevel, settings.gmApiKey, settings.gmDefaultMapType); |
|
|
|
} else if (mapProvider === 'openstreet-map') { |
|
|
|
this.map = new TbOpenStreetMap($element, this.utils, initCallback, this.defaultZoomLevel, this.dontFitMapBounds, minZoomLevel, settings.mapProvider); |
|
|
|
this.map = new TbOpenStreetMap($element, this.utils, initCallback, this.defaultZoomLevel, this.dontFitMapBounds, settings.disableScrollZooming, minZoomLevel, settings.mapProvider); |
|
|
|
} else if (mapProvider === 'image-map') { |
|
|
|
this.map = new TbImageMap(this.ctx, $element, this.utils, initCallback, |
|
|
|
settings.mapImageUrl, |
|
|
|
settings.disableScrollZooming, |
|
|
|
settings.posFunction, |
|
|
|
settings.imageEntityAlias, |
|
|
|
settings.imageUrlAttribute); |
|
|
|
} else if (mapProvider === 'tencent-map') { |
|
|
|
this.map = new TbTencentMap($element, this.utils, initCallback, this.defaultZoomLevel, this.dontFitMapBounds, minZoomLevel, settings.tmApiKey, settings.tmDefaultMapType); |
|
|
|
this.map = new TbTencentMap($element, this.utils, initCallback, this.defaultZoomLevel, this.dontFitMapBounds, settings.disableScrollZooming, minZoomLevel, settings.tmApiKey, settings.tmDefaultMapType); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -858,6 +859,11 @@ const commonMapSettingsSchema = |
|
|
|
"type": "boolean", |
|
|
|
"default": true |
|
|
|
}, |
|
|
|
"disableScrollZooming": { |
|
|
|
"title": "Disable scroll zooming", |
|
|
|
"type": "boolean", |
|
|
|
"default": false |
|
|
|
}, |
|
|
|
"latKeyName": { |
|
|
|
"title": "Latitude key name", |
|
|
|
"type": "string", |
|
|
|
@ -998,6 +1004,7 @@ const commonMapSettingsSchema = |
|
|
|
"form": [ |
|
|
|
"defaultZoomLevel", |
|
|
|
"fitMapBounds", |
|
|
|
"disableScrollZooming", |
|
|
|
"latKeyName", |
|
|
|
"lngKeyName", |
|
|
|
"showLabel", |
|
|
|
@ -1109,6 +1116,11 @@ const imageMapSettingsSchema = |
|
|
|
"type": "string", |
|
|
|
"default": "" |
|
|
|
}, |
|
|
|
"disableScrollZooming": { |
|
|
|
"title": "Disable scroll zooming", |
|
|
|
"type": "boolean", |
|
|
|
"default": false |
|
|
|
}, |
|
|
|
"xPosKeyName": { |
|
|
|
"title": "X position key name", |
|
|
|
"type": "string", |
|
|
|
@ -1226,6 +1238,7 @@ const imageMapSettingsSchema = |
|
|
|
}, |
|
|
|
"imageEntityAlias", |
|
|
|
"imageUrlAttribute", |
|
|
|
"disableScrollZooming", |
|
|
|
"xPosKeyName", |
|
|
|
"yPosKeyName", |
|
|
|
"showLabel", |
|
|
|
|