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:
Schwobaland
2016-10-06 23:32:53 +09:00
committed by Masahiro Wakame
parent 877a2af148
commit 384a4f4a5d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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;