Skip to content

Commit

Permalink
Fix #169 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
curran authored Jun 9, 2021
1 parent 4b7f545 commit fc5e2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Camera extends Evented {
* // return a LngLat object such as {lng: 0, lat: 0}
* var center = map.getCenter();
* // access longitude and latitude values directly
* var {longitude, latitude} = map.getCenter();
* var {lng, lat} = map.getCenter();
* @see Tutorial: [Use Mapbox GL JS in a React app](https://docs.mapbox.com/help/tutorials/use-mapbox-gl-js-with-react/#store-the-new-coordinates)
*/
getCenter(): LngLat { return new LngLat(this.transform.center.lng, this.transform.center.lat); }
Expand Down

0 comments on commit fc5e2a9

Please sign in to comment.