Skip to content

Commit b67bb1a

Browse files
committed
fix: animation
1 parent 6cd1957 commit b67bb1a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/vendors/Geo.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ function Geo(props) {
122122

123123
const loadLayers = function (map) {
124124
if (map) {
125-
console.log("LoadLayer")
126125
// Validate and create new layers
127126
const layers = Array.isArray(props.layers) ? props.layers :
128127
props.defaults && Array.isArray(props.defaults.layers) ? props.defaults.layers : [];
@@ -583,7 +582,7 @@ function Geo(props) {
583582
// Notification Control
584583
olMap.addControl(notification);
585584

586-
loadLayers(olMap)
585+
//loadLayers(olMap)
587586

588587
//Add map init event
589588
fireEvent('map:init', olMap);

src/vendors/helpers/Animate.js

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

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

0 commit comments

Comments
 (0)