From 2b0fad2fabb7a5b4c0219d85308d6f993848ad95 Mon Sep 17 00:00:00 2001 From: Curran Kelleher <68416+curran@users.noreply.github.com> Date: Tue, 8 Jun 2021 16:59:09 -0400 Subject: [PATCH] Fix #169 --- src/ui/camera.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/camera.js b/src/ui/camera.js index 80e76a53ee..c23adb61aa 100644 --- a/src/ui/camera.js +++ b/src/ui/camera.js @@ -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); }