Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dimfeld/svelte-maplibre

Svelte bindings for the MapLibre mapping library
https://github.com/dimfeld/svelte-maplibre

maplibre maplibre-gl-js mapping svelte

Last synced: 4 days ago
JSON representation

Svelte bindings for the MapLibre mapping library

Awesome Lists containing this project

README

        


svelte-maplibre logo


Svelte wrapper for the maplibre mapping library.

---

This library is functional, but I'm still experimenting with extra features to make advanced functionality easier to use. It also needs proper documentation. In the meantime, the [demo site](https://svelte-maplibre.vercel.app) includes code for all the examples, and is a good place to start.

[Changelog](./CHANGELOG.md)

## Installation

```
npm install svelte-maplibre
```

## Usage

```svelte

import { MapLibre } from 'svelte-maplibre';

:global(.map) {
height: 500px;
}

```

## Developing

You should create a `.env` file to configure the environment. See the `.env.example` file for the
necessary settings.

Currently the only environment variable is a MapTiler API key, required for the 3D Buildings example.
If you don't have one, you can set this to a blank value to use the other examples.

## Credits

Logo created by [Bruce Wayyn](https://github.com/brucewayyn)