0.7.16 • Published 3 months ago

@ragone/svelte-maplibre v0.7.16

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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 includes code for all the examples, and is a good place to start.

Changelog

Installation

npm install svelte-maplibre

Usage

<script>
  import { MapLibre } from 'svelte-maplibre';
</script>

<MapLibre 
  center={[50,20]}
  zoom={7}
  class="map"
  standardControls
  style="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json" />

<style>
  :global(.map) {
    height: 500px;
  }
</style>

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

0.7.16

3 months ago

0.7.13

3 months ago

0.7.15

3 months ago

0.7.14

3 months ago

0.7.12

3 months ago

0.7.11

4 months ago

0.7.10

4 months ago

0.7.9

4 months ago

0.7.8

5 months ago

0.7.7

5 months ago

0.7.6

5 months ago

0.7.5

5 months ago

0.7.4

5 months ago

0.7.3

5 months ago