https://visgl.github.io/react-maplibre/
React wrapper for Maplibre GL JS
https://visgl.github.io/react-maplibre/
Last synced: 12 months ago
JSON representation
React wrapper for Maplibre GL JS
- Host: GitHub
- URL: https://visgl.github.io/react-maplibre/
- Owner: visgl
- License: mit
- Archived: true
- Created: 2024-09-30T22:24:46.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-29T18:12:15.000Z (over 1 year ago)
- Last Synced: 2025-06-12T18:31:41.410Z (about 1 year ago)
- Language: TypeScript
- Size: 8.59 MB
- Stars: 55
- Watchers: 6
- Forks: 5
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-maplibre - react-maplibre - Design specifically for MapLibre, this package is planned to supersede react-map-gl. (Bindings / JavaScript)
README
> The source code of this module has been consolidated into the [react-map-gl](https://github.com/visgl/react-map-gl) repo, where the latest release are published from. Please report issues and open PRs there.
react-maplibre | Docs
`@vis.gl/react-maplibre` is a suite of [React](http://facebook.github.io/react/) components designed to provide a React API for [maplibre-gl](https://maplibre.org/maplibre-gl-js-docs/api/). More information in the online documentation.
See our [Design Philosophy](docs/README.md#design-philosophy).
### Installation
Using this package requires `react >= 16.3` and `maplibre-gl >= 4.0.0`.
```sh
npm install @vis.gl/react-maplibre maplibre-gl
```
### Example
```js
import * as React from 'react';
import {Map} from '@vis.gl/react-maplibre';
import 'maplibre-gl/dist/maplibre-gl.css';
function App() {
return ;
}
```
### Contribute
See [contribution guide](/CONTRIBUTING.md).
### Attributions
react-maplibre is part of vis.gl, an [OpenJS Foundation](https://openjsf.org) project.