Vue.js map using MapLibre GL JS

License: MIT

A quick way to start a web map application with Vue.js using MapLibre GL JS.

A simple fullscreen map application is used to showcase how to utilize MapTiler maps together with Vue.js and MapLibre GL JS for your Vue.js app.


vue maplibre template


Online demo:

Build With

This project was generated with Vue CLI version 4.5.15.

Getting Started


  • npm

    npm install npm@latest -g
  • Angular CLI

    npm install -g @vue/cli

Create an app

Clone the repo to create a new Vue.js project. Run in your command-line:

  git clone my-vue-map

Navigate to the newly created project folder my-vue-map

  cd my-vue-map

Install the NPM packages dependencies. Run in your command-line:

  npm install


Rename or copy the .env.example file to .env

  cp .env.example .env

Open the .env file, ⚠️ you will need to replace YOUR_MAPTILER_API_KEY with your own MapTiler API key.

Your MapTiler account access key is on your MapTiler Cloud account page.

ℹ️ If you don’t have an API KEY, you can create it for free at


To start your local environment, run:

  npm run serve

You will find your app on address http://localhost:8080/.

Now you should see the app in your browser.


Distributed under the MIT License. See LICENSE for more information.


Instead of using or developing a custom map component, you can use the Vue.js binding of maplibre-gl-js.


View Github