Skip to content

Commit cb898bd

Browse files
andrewharveymourner
authored andcommitted
replace incorrect LatLngBounds with LngLatBounds
1 parent 0470256 commit cb898bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/camera.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ class Camera extends Evented {
411411

412412
/**
413413
* @memberof Map#
414-
* @param {LatLngBoundsLike} bounds Calculate the center for these bounds in the viewport and use
414+
* @param {LngLatBoundsLike} bounds Calculate the center for these bounds in the viewport and use
415415
* the highest zoom level up to and including `Map#getMaxZoom()` that fits
416-
* in the viewport. LatLngBounds represent a box that is always axis-aligned with bearing 0.
416+
* in the viewport. LngLatBounds represent a box that is always axis-aligned with bearing 0.
417417
* @param options
418418
* @param {number | PaddingOptions} [options.padding] The amount of padding in pixels to add to the given bounds.
419419
* @param {PointLike} [options.offset=[0, 0]] The center of the given bounds relative to the map's center, measured in pixels.

0 commit comments

Comments
 (0)