sureleo / leaflet-baidu

An on-going plugin for leaflet with Baidu Map
MIT License
49 stars 22 forks source link

Fix coordinate of center when double click to zoom in #12

Closed sureleo closed 10 years ago

sureleo commented 10 years ago

When I click the oval part in this map, the center is 39.8xxx, 116.404. image

However Tian'an Men is 39.915. When we go north, the latitude should increase rather than decrease.

Heres also and image to show the effect. It should display the north part of Metro Line 10, but not south part of Line 10. image

sureleo commented 10 years ago

This can be solved by adding two options in the map

'doubleClickZoom': 'center',
'scrollViewZoom': 'center'

But obviously this is not the ideal solution.

sureleo commented 10 years ago

try to fix #13 and #15