Vue, Svelte and JavaScript quickstart
MountayaMap is the map itself, with no framework behind it. Mount it in any element.
The packages are not on npm yet
1
Create the app
2
Set your key
Create a publishable key under Organization → API keys in the Mountaya app, with the tiles and publishing scopes.
.env.local
3
Give the map a container
In index.html, replace the <div id="app"> with a container that has a height:
4
Replace src/main.ts
src/main.ts
Run npm run dev and open the address Vite prints.
Build the map when the component mounts, and destroy it when it unmounts.
Every method of the map is on Use the map without React.