You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, the iconSize option must be a L.Point - i.e. an array of two numbers. Usage of the string "auto" is neither documented nor expected.
I'm not keen on changing the behaviour of iconSize to allow for "auto" or any other CSS-related values. There's too much variability, and I'd rather not need to implement MutationObservers all around to keep track of sizes. The good old "put another larger DOM element inside the DivIcon with overflow: none" should work for these situations.
Checklist
Steps to reproduce
iconSize: 'auto'
oriconSize: [auto, 100]
oriconSize: [100, auto]
).Expected behavior
Map should pan to the marker on click (technically on 'focus').
Current behavior
In Marker.js,
_panOnFocus
passesoptions.paddingBottomRight = [NaN, NaN]
(or similar) tomap.panInside
.This causes
Error: Invalid LatLng object: (NaN, NaN)
.Minimal example reproducing the issue
https://codepen.io/vtdn5C4Ibd1/pen/RwdYQaQ?editors=0011
Environment
The text was updated successfully, but these errors were encountered: