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
Once terrain is enabled by something like terrain={source: 'terrain-dem', exaggeration: 1.5}; you can not disable it again by setting it to undefined. Setting is to null does work but throws a typescript error.
Expected Behavior
Typescript says terrain is terrain | undefined, so setting to undefined should disable terrain in maplibre.
Steps to Reproduce
Toggle terrain setting between terrain and undefined.
Environment
Framework version: 4.7.1 or 5.1.0
Browser: Chrome
OS: Mac
Logs
No response
The text was updated successfully, but these errors were encountered:
Description
Once terrain is enabled by something like
terrain={source: 'terrain-dem', exaggeration: 1.5};
you can not disable it again by setting it toundefined
. Setting is tonull
does work but throws a typescript error.Expected Behavior
Typescript says terrain is
terrain | undefined
, so setting to undefined should disable terrain in maplibre.Steps to Reproduce
Toggle terrain setting between terrain and undefined.
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: