File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
lib/components/data-vis/map
wrappers/components/data-vis/map Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 57
57
hoverOpacity = 0.8 ,
58
58
center = [- 2.5 , 53 ],
59
59
zoom = 5 ,
60
+ minZoom,
61
+ maxZoom,
60
62
hash = false ,
61
63
updateHash = (u ) => {
62
64
replaceState (u , page .state );
92
94
hoverOpacity? : number ;
93
95
center? : LngLatLike | undefined ;
94
96
zoom? : number ;
97
+ minZoom? : number ;
98
+ maxZoom? : number ;
95
99
hash? : boolean ;
96
100
updateHash? : (URL ) => void ;
97
101
useInitialHash? : boolean ;
253
257
{standardControls }
254
258
{center }
255
259
{zoom }
260
+ {maxZoom }
261
+ {minZoom }
256
262
{hash }
257
263
{updateHash }
258
264
class =" map"
Original file line number Diff line number Diff line change 180
180
category: " UI" ,
181
181
visible: { name: " standardControls" , value: false },
182
182
},
183
+ {
184
+ name: " maxZoom" ,
185
+ isProp: true ,
186
+ description:
187
+ " Add zoom in and out, and 'reset bearing to north' buttons" ,
188
+ value: 10 ,
189
+ category: " UI" ,
190
+ visible: { name: " standardControls" , value: false },
191
+ },
192
+ {
193
+ name: " minZoom" ,
194
+ isProp: true ,
195
+ description:
196
+ " Add zoom in and out, and 'reset bearing to north' buttons" ,
197
+ value: 0 ,
198
+ category: " UI" ,
199
+ visible: { name: " standardControls" , value: false },
200
+ },
183
201
{
184
202
name: " navigationControlPosition" ,
185
203
isProp: true ,
266
284
},
267
285
{
268
286
name: " mapHeight" ,
287
+ category: " Styling" ,
269
288
isProp: true ,
270
289
value: 400 ,
271
290
},
You can’t perform that action at this time.
0 commit comments