Skip to content

Commit

Permalink
Added note about how to input long and lat into LngLatBounds
Browse files Browse the repository at this point in the history
This has been edited in both lng_lat.js and lng_lat_bounds.js but from tests it only seems lng_lat.js is needed but cross posting for consistency just in case.
  • Loading branch information
emilygamedeveloper committed Apr 4, 2024
1 parent fd2045f commit afcd98d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/geo/lng_lat.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ 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
4 changes: 3 additions & 1 deletion src/geo/lng_lat_bounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ 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

0 comments on commit afcd98d

Please sign in to comment.