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
In the docs it says that maxZoom can be null for infinite scaling. However, the type of maxZoom when one hovers over it is number | undefined, not number | null | undefined.
(property)maxZoom?: number |undefined
The text was updated successfully, but these errors were encountered:
Volper212
changed the title
maxZoom - number | undefined instead of number | null | undefinedmaxZoom?: number instead of maxZoom?: number | nullAug 23, 2024
I think the docs just need updating, then. Sounds as though it used to take null but no longer requires the prop. Would you mind making a PR for this change?
So not the docs but the types need to be updated. Alternatively, one could get rid the option of passing null altogether and just use maxZoom={Infinity} for infinite zoom. There are two options then.
In the docs it says that
maxZoom
can benull
for infinite scaling. However, the type ofmaxZoom
when one hovers over it isnumber | undefined
, notnumber | null | undefined
.The text was updated successfully, but these errors were encountered: