refs #44 improve locate control behaviour: maxZoom, restore previous state, follow, animation
This commit is contained in:
Родитель
b7af8ab93c
Коммит
8a3df1b7db
|
@ -355,7 +355,11 @@
|
|||
strings: {
|
||||
title: t('maps', 'See current location')
|
||||
},
|
||||
locateOptions: {enableHighAccuracy: true}
|
||||
flyTo: true,
|
||||
returnToPrevBounds: true,
|
||||
setView: 'untilPan',
|
||||
showCompass: true,
|
||||
locateOptions: {enableHighAccuracy: true, maxZoom: 15}
|
||||
}).addTo(this.map);
|
||||
$('.leaflet-control-locate a').click( function(e) {
|
||||
optionsController.saveOptionValues({locControlEnabled: mapController.locControl._active});
|
||||
|
|
Загрузка…
Ссылка в новой задаче