Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated comment for LngLatBounds to discuss the range of valid input for this method in order to reflect in the API docs on site #13137

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/geo/lng_lat.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export default LngLat;

/**
* A `LngLatBounds` object represents a geographical bounding box,
* defined by its southwest and northeast points in longitude and latitude.
* defined by its southwest and northeast points in [`longitude`](https://docs.mapbox.com/help/glossary/lat-lon/) and [`latitude`](https://docs.mapbox.com/help/glossary/lat-lon/).
* `Longitude` values are typically set between `-180` to `180`, but can exceed this range if necessary. `Latitude` values must be within `-90` to `90`.
*
* If no arguments are provided to the constructor, a `null` bounding box is created.
*
Expand Down
3 changes: 2 additions & 1 deletion src/geo/lng_lat_bounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import type {LngLatLike} from './lng_lat.js';

/**
* A `LngLatBounds` object represents a geographical bounding box,
* defined by its southwest and northeast points in longitude and latitude.
* defined by its southwest and northeast points in [`longitude`](https://docs.mapbox.com/help/glossary/lat-lon/) and [`latitude`](https://docs.mapbox.com/help/glossary/lat-lon/).
* `Longitude` values are typically set between `-180` to `180`, but can exceed this range if necessary. `Latitude` values must be within `-90` to `90`.
*
* If no arguments are provided to the constructor, a `null` bounding box is created.
*
Expand Down
Loading