Leaflet: Fix Marker's Position While Zooming
When I was building the Youbike-Map project and I want to find a way to make a marker stationary when zooming in. This can help the user navigate the map more effectively. Leaflet default Scroll Wheel Zoom Option Leaflet only provides two options, “true” and “center”, in the ‘scrollWheelZoom’ setting. The options “true” is the default setting and will make the point where your mouse is on stationary; The second options is “center” this will make it zoom in to the center of the map no matter where the cursor is. ...