Skip to content

Commit 3e8fcbd

Browse files
nathancahillIvanSanchez
authored andcommitted
add option type for 'center' value (Leaflet#4456)
1 parent 7347446 commit 3e8fcbd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/map/handler/Map.DoubleClickZoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @section Interaction Options
77

88
L.Map.mergeOptions({
9-
// @option doubleClickZoom: Boolean = true
9+
// @option doubleClickZoom: Boolean|String = true
1010
// Whether the map can be zoomed in by double clicking on it and
1111
// zoomed out by double clicking while holding shift. If passed
1212
// `'center'`, double-click zoom will zoom to the center of the

src/map/handler/Map.ScrollWheelZoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @section Interaction Options
77
L.Map.mergeOptions({
88
// @section Mousewheel options
9-
// @option scrollWheelZoom: Boolean = true
9+
// @option scrollWheelZoom: Boolean|String = true
1010
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
1111
// it will zoom to the center of the view regardless of where the mouse was.
1212
scrollWheelZoom: true,

src/map/handler/Map.TouchZoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @section Interaction Options
77
L.Map.mergeOptions({
88
// @section Touch interaction options
9-
// @option touchZoom: Boolean = *
9+
// @option touchZoom: Boolean|String = *
1010
// Whether the map can be zoomed by touch-dragging with two fingers. If
1111
// passed `'center'`, it will zoom to the center of the view regardless of
1212
// where the touch events (fingers) were. Enabled for touch-capable web

0 commit comments

Comments
 (0)