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

fix #2234

Merged
merged 1 commit into from
Feb 27, 2023
Merged

fix #2234

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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

- Fix issue unloading sprite sheet when using `setStyle(style, {diff:true})` ([#2146](https://github.com/maplibre/maplibre-gl-js/pull/2146))
- Fix wrap coords in `getTerrain` when `fitBounds` accross the AM ([#2155](https://github.com/maplibre/maplibre-gl-js/pull/2155))
- Fix LngLat `toArray` method return type to [number,number] ([#2233] (https://github.com/maplibre/maplibre-gl-js/issues/2233))
- _...Add new stuff here..._

## 3.0.0-pre.4
Expand Down
4 changes: 2 additions & 2 deletions src/geo/lng_lat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ class LngLat {
/**
* Returns the coordinates represented as an array of two numbers.
*
* @returns {Array<number>} The coordinates represeted as an array of longitude and latitude.
* @returns {[number,number]} The coordinates represented as an array of longitude and latitude.
* @example
* var ll = new maplibregl.LngLat(-73.9749, 40.7736);
* ll.toArray(); // = [-73.9749, 40.7736]
*/
toArray() {
toArray(): [number, number] {
return [this.lng, this.lat];
}

Expand Down