mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
fixed setMaxBounds to match maxBounds in MapOptions (#11738)
* fixed setMaxBounds to match maxBounds in MapOptions * comment removed and splitted into two overloads.
This commit is contained in:
committed by
Masahiro Wakame
parent
877a2af148
commit
384a4f4a5d
@@ -237,8 +237,8 @@ map = map
|
||||
.panTo(latLngTuple, panOptions)
|
||||
.panBy(point)
|
||||
.panBy(pointTuple)
|
||||
.setMaxBounds(bounds) // investigate if this really receives Bounds instead of LatLngBounds
|
||||
.setMaxBounds(boundsLiteral)
|
||||
.setMaxBounds(latLngBounds)
|
||||
.setMaxBounds(latLngBoundsLiteral)
|
||||
.setMinZoom(5)
|
||||
.setMaxZoom(10)
|
||||
.panInsideBounds(latLngBounds)
|
||||
|
||||
Vendored
+2
-2
@@ -1231,8 +1231,8 @@ declare namespace L {
|
||||
panTo(latlng: LatLngTuple, options?: PanOptions): this;
|
||||
panBy(offset: Point): this;
|
||||
panBy(offset: PointTuple): this;
|
||||
setMaxBounds(bounds: Bounds): this; // is this really bounds and not lanlngbounds?
|
||||
setMaxBounds(bounds: BoundsLiteral): this;
|
||||
setMaxBounds(bounds: LatLngBounds): this;
|
||||
setMaxBounds(bounds: LatLngBoundsLiteral): this;
|
||||
setMinZoom(zoom: number): this;
|
||||
setMaxZoom(zoom: number): this;
|
||||
panInsideBounds(bounds: LatLngBounds, options?: PanOptions): this;
|
||||
|
||||
Reference in New Issue
Block a user