0.4.1 • Published 11 months ago

solid-maplibre v0.4.1

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

Solid-MapLibre

CI npm

SolidJS wrapper around MapLibre GL JS.

This library intentionally doesn't support MapBoxGL. You might want to check out solid-map-gl which does.

Features

  • 100% TypeScript
  • Native MapLibre typings

Usage

Don't forget to import MapLibre GL JS CSS styles:

import "maplibre-gl/dist/maplibre-gl.css";

Add map component and ensure to specify container size in style, class or classList attributes:

<Map
  style={{
    width: "100%",
    "aspect-ratio": "calc(16/9)",
  }}
  options={{
    center: [11.40416, 47.26475],
    style: "https://demotiles.maplibre.org/styles/osm-bright-gl-style/style.json",
    zoom: 10,
  }}
/>

See more usage examples.

0.3.0

11 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.2.4

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.0-dev.1

2 years ago

0.1.2

2 years ago

0.1.2-dev.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago