Skip to content

Quick way to star a web map application with MapLibre GL JS using Angular

License

Notifications You must be signed in to change notification settings

maptiler/get-started-angular-maplibre-gl-js

Repository files navigation

Get started with Angular and MapLibre GL JS

License: MIT

Quick way to star a web map application with MapLibre GL JS using Angular.

A simple fullscreen map application as an example on how to use MapTiler maps together with Angular and MapLibre GL JS for your own Angular app.

  1. Clone this repo
  git clone https://github.com/maptiler/get-started-angular-maplibre-gl-js.git my-angular-map
  1. Navigate to the newly created project folder my-angular-map
  cd my-angular-map
  1. Install dependencies
  npm install
  1. ⚠️ Open the app.component.html file and replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

ℹ️ If you don't have an API KEY you can create it for FREE at https://www.maptiler.com/cloud/

  1. Start your local environment
  npm start
  1. You will find your app on address http://localhost:4200/. Now you should see the map in your browser.

Build With

This project was generated with Angular CLI version 14.0.3.

Learn More

You can learn more at How to display a map in Angular using MapLibre GL JS.

License

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

(back to top)