Merge pull request #1083 from umap-project/locate-flyTo

Use flyTo option in locate if map settings aks for it
This commit is contained in:
Yohan Boniface 2023-05-11 19:53:52 +02:00 committed by GitHub
commit e956dc7ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,8 @@ L.U.Map.include({
// but the control breaks if we don't specify a class here, so a fake class // but the control breaks if we don't specify a class here, so a fake class
// will do. // will do.
icon: 'umap-fake-class', icon: 'umap-fake-class',
iconLoading: 'umap-fake-class' iconLoading: 'umap-fake-class',
flyTo: this.options.easing
}); });
this._controls.fullscreen = new L.Control.Fullscreen({title: {'false': L._('View Fullscreen'), 'true': L._('Exit Fullscreen')}}); this._controls.fullscreen = new L.Control.Fullscreen({title: {'false': L._('View Fullscreen'), 'true': L._('Exit Fullscreen')}});
this._controls.search = new L.U.SearchControl(); this._controls.search = new L.U.SearchControl();