File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ function initMap() {
32
32
container : mapDiv ,
33
33
boxZoom : false ,
34
34
// doubleClickZoom: false,
35
- scrollZoom : false ,
35
+ // scrollZoom: false,
36
36
attributionControl : false ,
37
+ cooperativeGestures : true ,
38
+ dragRotate : false ,
37
39
} )
38
40
window . map = map
39
41
@@ -64,11 +66,13 @@ function selectStyle(style) {
64
66
map . setPitch ( london3d . pitch )
65
67
map . setBearing ( london3d . bearing )
66
68
map . setZoom ( london3d . zoom )
69
+ map . dragRotate . enable ( )
67
70
} else if ( map . getBearing ( ) !== 0 ) {
68
71
map . setCenter ( berlin . center )
69
72
map . setPitch ( berlin . pitch )
70
73
map . setBearing ( berlin . bearing )
71
74
map . setZoom ( berlin . zoom )
75
+ map . dragRotate . disable ( )
72
76
}
73
77
74
78
document . getElementById ( 'style-url-code' ) . innerText = styleUrl
You can’t perform that action at this time.
0 commit comments