maptalks.three icon indicating copy to clipboard operation
maptalks.three copied to clipboard

maptalk 使用 flyTo方法后,地图无法拖动旋转

Open Simon-wu opened this issue 2 years ago • 1 comments

maptalk 使用 flyTo方法后,地图无法拖动旋转,鼠标滚轮缩放后正常

              worldMap.flyTo({
                  center: point

              }, {
                  duration: 400,
              }, function (frame) {
                  if (frame.state.playState === 'finished') {
                      console.log('flyTo finished');
                      worldMap.setCenter(point);
                  }
              });

使用worldMap.setCenter(point); 这个方法没这个问题 但没有缓动效果了 [animateTo] 移动得时候抖动得效果不大好

Simon-wu avatar Apr 27 '22 08:04 Simon-wu

经过排查,zoom 这个属性需要填写,上了这个属性,就算是个不变得值 也不会出现这个情况了

Simon-wu avatar Apr 28 '22 05:04 Simon-wu