Skip to content

Commit ae799c0

Browse files
committed
fix: parameter name
1 parent 2a11aeb commit ae799c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vendors/helpers/Animate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export function animateToLocation(map, coords, duration, props = {}) {
2323
}, props), props.callback);
2424
}
2525

26-
export function animateToExtent(map, extent, duration, props = {}) {
27-
const geographicCenter = getCenter(extent);
26+
export function animateToExtent(map, coords, duration, props = {}) {
27+
const geographicCenter = getCenter(coords);
2828
const location = fromLonLat(geographicCenter);
2929
map.getView().animate(Object.assign({ zoom: 15 }, {
3030
center: location,

0 commit comments

Comments
 (0)