Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の命令は、期待どおりに機能しません。
map.panTo(e.latlng, {animate: true, duration: 1.0});
0.5、1.0、10.0、1000.0、1、10 のさまざまな値を試しましたが、パンは同じくらい高速です。
何か案が?ありがとう!
最新の Leaflet バージョンを使用していますか? 0.6.4 でこのコードを試してみたところ、完全に機能し、予想どおりゆっくりとパンしました。
map.on('click', function (e) { map.panTo(e.latlng, {animate: true, duration: 5.0}); });