Giter Site home page Giter Site logo

maptiler / get-started-svelte-maplibre-gl-js Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 1.0 37 KB

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

License: MIT License

CSS 3.85% HTML 5.42% JavaScript 82.49% Svelte 8.24%
example-code svelte sveltejs template tutorial-code

get-started-svelte-maplibre-gl-js's Introduction

Get started with Svelte and MapLibre GL JS

License: MIT

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

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

  1. Clone this repo
  git clone https://github.com/maptiler/get-started-svelte-maplibre-gl-js.git my-svelte-map
  1. Navigate to the newly created project folder my-svelte-map
  cd my-svelte-map
  1. Install dependencies
  npm install
  1. ⚠️ Open the App.svelte 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 run dev
  1. You will find your app on address http://localhost:8080/. Now you should see the map in your browser.

Build With

Learn More

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

License

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

(back to top)

get-started-svelte-maplibre-gl-js's People

Contributors

bolollo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

necropreneur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.