Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.79 KB

File metadata and controls

54 lines (35 loc) · 1.79 KB

Get started with React JS and MapLibre GL JS

License: MIT

Quick way to start a web map application with MapLibre GL JS using Create React App.

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

  1. Clone this repo
  git clone https://github.com/maptiler/get-started-react-maplibre-gl-js.git my-react-map
  1. Navigate to the newly created project folder my-react-map
  cd my-react-map
  1. Install dependencies
  npm install
  1. ⚠️ Open the App.js 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:3000/. Now you should see the map in your browser.

Build With

This project was bootstrapped with Create React App.

Learn More

You can learn more at How to display MapLibre GL JS map using React JS.

License

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

(back to top)