• Stars
    star
    226
  • Rank 170,810 (Top 4 %)
  • Language Svelte
  • License
    MIT License
  • Created about 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Svelte bindings for the MapLibre mapping library

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 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

More Repositories

1

httptreemux

High-speed, flexible tree-based HTTP router for Go.
Go
606
star
2

ergo

Low-code task engine built with Rust and Svelte
Rust
136
star
3

export-logseq-notes

Export notes from Logseq or Roam to HTML for use in a static site.
Rust
38
star
4

svelte-rough-notation

A Svelte wrapper around the rough-notation library
Svelte
38
star
5

svelte-leaflet-demo

This is a demo application using Svelte and Leaflet to visualize the US Census "Metro Area-to-Metro Area Migration Flows” dataset.
JavaScript
37
star
6

swr-xstate

An implementation of SWR using XState
TypeScript
30
star
7

unwebhook

Webhook server for Gitlab and Github to run arbitrary commands based on events
Go
16
star
8

effectum

Job Queue based on SQLite
Rust
15
star
9

starting-with-solana

JavaScript
13
star
10

rust-types-to-typescript-example

Generating Typescript types from Rust source code
JavaScript
11
star
11

svelte-zoomable

Zoomable UI in Svelte
JavaScript
10
star
12

rush-dev-watcher

Run development build commands across a project and its dependencies
JavaScript
10
star
13

goconfig

Loads configuration from TOML files, allowing environment variables to override.
Go
9
star
14

palette-swap

Transform a color palette you like to another color.
HTML
8
star
15

website

Personal website
HTML
7
star
16

brokerage_server

HTTP-based interface to stock brokers
Go
6
star
17

pic-store

Convert, upload, and manage images in object storage
Rust
6
star
18

svelte-storybook-workarounds

Svelte
6
star
19

perceive

Semantic search for your life
Rust
5
star
20

maiven

mAIven - An AI-powered research library and assistant
Rust
5
star
21

treewatcher

Recursive Filesystem Tree Watcher for Go
Go
5
star
22

sorters

Sort an array considering multiple fields and sort orders.
TypeScript
4
star
23

dotfiles

Lua
4
star
24

svelte-style-action

JavaScript
4
star
25

earnings-trade-scheduler

Given data from CMLViz TradeMachine, figure out the best entry and exit dates for upcoming trades around earnings. No longer updated since Trademachine added alerts.
Rust
4
star
26

rust-envoption

Simple helper functions for environment variables
Rust
4
star
27

buzzy

An AI question answering bot for kids
TypeScript
4
star
28

lezer-json5

JavaScript
3
star
29

gocache

Go library with various caching functionality
Go
3
star
30

codemirror-json5

Codemirror 6 support for JSON5
TypeScript
3
star
31

smelter

Serverless Data Query Framework
Rust
3
star
32

simpleblog

A very simple blog engine I'm writing to learn Go.
Go
3
star
33

promptbox

LLM Prompt Library and Templating
Rust
3
star
34

sqlweld

Piece together SQL query files from templates and partials
HTML
3
star
35

sveltekit-with-svelte-query

Test case for getting SvelteKit working with svelte-query
Svelte
2
star
36

merge-geo

Merge CSV data into GeoJSON Features
JavaScript
2
star
37

options-analysis

Utility functions for analyzing option combos
TypeScript
2
star
38

remote-ssl-renewal

Renew LetsEncrypt SSL Certificates for a CDN when the DNS is hosted elsewhere
Rust
1
star
39

section-wordcount.nvim

Neovim plugin to count words in each section of a document
Lua
1
star
40

trading

TypeScript
1
star
41

buildspace-gif-wall

Svelte
1
star
42

rust_lenient_bool

A more accepting boolean token parser.
Rust
1
star
43

svelte-template

JavaScript
1
star
44

sbbp

Should've Been a Blog Post
Svelte
1
star
45

video-trimmer-gui

A small utility for trimming a video and adding intros and outros
HTML
1
star
46

sqlx-transparent-json-decode

Easier JSON decoding with sqlx
Rust
1
star
47

create-social-card

Rust
1
star
48

node-tda-api

A few endpoints for the TD Ameritrade API
TypeScript
1
star
49

env-template

Render Handlebars template files using environment variables
Rust
1
star
50

svelte-lazyload

Use an IntersectionObserver to delay loading elements until they are about to enter the viewport.
Svelte
1
star
51

glance

Your Personal Dashboard
Rust
1
star
52

spacelog-levelstring

Log level configuration of spacemonkeygo/spacelog from a string
Go
1
star