9
4

1 回答 1

13

I believe you are referring to the autoPan property? From the API: Set it to false if you don't want the map to do panning animation to fit the opened popup.

http://leafletjs.com/reference.html#popup

So when creating your Popup, just pass in the option autoPan: false

于 2013-05-23T11:58:17.463 回答