File tree Expand file tree Collapse file tree 1 file changed +7
-32
lines changed Expand file tree Collapse file tree 1 file changed +7
-32
lines changed Original file line number Diff line number Diff line change 48
48
let map ;
49
49
50
50
const url = new URL ( location ) ;
51
- const mapType = url . searchParams . get ( 'mapType' ) ;
51
+ const mapType = 'mapgl' ; // url.searchParams.get('mapType');
52
52
const mapglUrl = url . searchParams . get ( 'mapglUrl' ) ?? undefined ;
53
53
54
54
if ( mapType === 'mapgl' ) {
63
63
64
64
map = window . map = new mapgl . Map ( 'map' , {
65
65
center : [ 37.62708 , 55.750471 ] ,
66
- key : '4970330e-7f1c-4921-808c-0eb7c4e63001' ,
67
- // key: 'a1893935-6834-4445-b97a-3405fb426c5b',
68
- zoom : 16 ,
66
+ key : 'a1893935-6834-4445-b97a-3405fb426c5b' ,
67
+ maxPitch : 80 ,
68
+ lowZoomMaxPitch : 80 ,
69
+ pitch : 75 ,
70
+ rotation : 33 ,
71
+ zoom : 17.5 ,
69
72
} ) ;
70
73
}
71
74
reload ( ) ;
84
87
window . reload = reload ;
85
88
window . destroy = destroy ;
86
89
}
87
-
88
- if ( mapType === 'mapbox' ) {
89
- function reload ( ) {
90
- if ( map ) {
91
- map . remove ( ) ;
92
- }
93
-
94
- map = window . map = new mapboxgl . Map ( {
95
- container : 'map' ,
96
- style : 'mapbox://styles/mapbox/streets-v9' ,
97
- zoom : 16 ,
98
- center : [ 37.62708 , 55.750471 ]
99
- } ) ;
100
-
101
- }
102
-
103
- reload ( ) ;
104
-
105
-
106
- function destroy ( ) {
107
- if ( map ) {
108
- map . remove ( ) ;
109
- }
110
- }
111
-
112
- window . reload = reload ;
113
- window . destroy = destroy ;
114
- }
115
90
</ script >
116
91
</ body >
117
92
</ html >
You can’t perform that action at this time.
0 commit comments