Accepts either a raw maplibregl.Map or an IMapAdapter, which is unwrapped through
getNativeMap() — the registry works against the native API since Sprint 3. null clears
the cache, which is what destroy flows and tests use.
⚠️ A value that is neither a native map nor an adapter yielding one is silently
ignored: the previous map stays cached and no error is raised.
Caches the map the basemap registry operates on.
Accepts either a raw
maplibregl.Mapor anIMapAdapter, which is unwrapped throughgetNativeMap()— the registry works against the native API since Sprint 3.nullclears the cache, which is what destroy flows and tests use.⚠️ A value that is neither a native map nor an adapter yielding one is silently ignored: the previous map stays cached and no error is raised.