Install and set up
This line gives you a map in React:
Add or drop packages for what you build:
Import one stylesheet once, at your app's entry point:
It holds MapLibre's rules too, so there is nothing else to import. With the studio, import @mountaya/studio-react/styles.css instead.
Put controls inside MapView and they find the map with nothing else to wire:
For anything placed outside the map, a sidebar or a toolbar, mount MountayaElementsProvider yourself and hand it the map onReady returns:
MapView fills its container, so give the container a height. Import the client from @mountaya/client/browser in any code that reaches a browser.
Reach for the narrowest entry that serves you: only the map entries bring MapLibre.