Skip to content

Commit

Permalink
Add changelog entry for fitScreenCoordinates.
Browse files Browse the repository at this point in the history
Also: restore previous import order in camera.js.
  • Loading branch information
ChrisLoer committed Jul 3, 2018
1 parent e3fa7d9 commit 9193712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.47.0

### ⚠️ Breaking changes

### ✨ Features and improvements
* Add `Map#fitScreenCoordinates`: fits viewport to two points, similar to `Map#fitBounds` but uses screen coordinates and supports non-zero map bearings. ([#6894](https://github.com/mapbox/mapbox-gl-js/pull/6894))

### 🐛 Bug fixes

## 0.46.0

### ⚠️ Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion src/ui/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
} from '../util/util';
import { number as interpolate } from '../style-spec/util/interpolate';
import browser from '../util/browser';
import LngLatBounds from '../geo/lng_lat_bounds';
import LngLat from '../geo/lng_lat';
import LngLatBounds from '../geo/lng_lat_bounds';
import Point from '@mapbox/point-geometry';
import { Event, Evented } from '../util/evented';

Expand Down

0 comments on commit 9193712

Please sign in to comment.