Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67ff75a

Browse files
committed
Enable cooperativeGestures
1 parent 27fc99c commit 67ff75a

File tree

6 files changed

+2
-6
lines changed

6 files changed

+2
-6
lines changed

docs/.vuepress/components/map/base-map.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ onMounted(() => {
3838
zoom: 2.4,
3939
minZoom: 0,
4040
maxZoom: 22,
41-
scrollZoom: true,
4241
pitch: 0,
4342
bearing: 0,
4443
antialias: false,
44+
scrollZoom: true,
45+
cooperativeGestures: true,
4546
attributionControl: false
4647
}
4748
const options = Object.assign({}, mapDefaultOptions, props.mapOptions)

docs/.vuepress/components/map/plugins/echarts-lines.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const mapOptions: Omit<mapboxgl.MapboxOptions, 'container'> = {
1111
style: STYLE.MONOCHROME,
1212
center: [104.114129, 37.550339],
1313
zoom: 3,
14-
interactive: false,
1514
}
1615
1716
const handleMapLoaded = (map: mapboxgl.Map) => {

docs/.vuepress/components/map/plugins/echarts-scatter.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const mapOptions: Omit<mapboxgl.MapboxOptions, 'container'> = {
1111
style: STYLE.GRAY,
1212
center: [104.114129, 37.550339],
1313
zoom: 3,
14-
interactive: false,
1514
}
1615
const handleMapLoaded = (map: mapboxgl.Map) => {
1716
const data = [

docs/.vuepress/components/map/starter/globe.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import BaseMap from '../base-map.vue'
99
const mapOptions: Omit<mapboxgl.MapboxOptions, 'container'> = {
1010
zoom: 2,
1111
projection: { name: 'globe' },
12-
interactive: false,
1312
}
1413
1514
function handleMapLoaded(map: mapboxgl.Map) {

docs/.vuepress/components/map/starter/tutorials/highlight-1.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import BaseMap from '../../base-map.vue'
88
const mapOptions: Omit<mapboxgl.MapboxOptions, 'container'> = {
99
center: [-100.486052, 37.830348],
1010
zoom: 2,
11-
interactive: false,
1211
}
1312
1413
const handleMapLoaded = (map: mapboxgl.Map) => {

docs/.vuepress/components/map/starter/tutorials/highlight-2.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import baseMap from '../../base-map.vue'
88
const mapOptions: Omit<mapboxgl.MapboxOptions, 'container'> = {
99
center: [-100.486052, 37.830348],
1010
zoom: 2,
11-
interactive: false,
1211
}
1312
1413
let hoveredStateId: string | number | undefined

0 commit comments

Comments
 (0)