angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Disable auto center adjust after change marker coordinates programmatically #362

Open ckristhoff opened 5 years ago

ckristhoff commented 5 years ago

Hi everyone after change marker coordinates programatically leflet auto adust the center map. My app track device location but user can focus in other markers.

My map losses the marker focus each time user moves.

How disable this behavior?

Example: http://angular-ui.github.io/ui-leaflet/#!/examples/dragging-markers

Edit: message attribute in marker makes auto center. Remove message.