https://github.com/visgl/react-maplibre
React wrapper for Maplibre GL JS
https://github.com/visgl/react-maplibre
Last synced: 7 months ago
JSON representation
React wrapper for Maplibre GL JS
- Host: GitHub
- URL: https://github.com/visgl/react-maplibre
- Owner: visgl
- License: mit
- Created: 2024-09-30T22:24:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-14T08:39:21.000Z (about 1 year ago)
- Last Synced: 2025-01-27T10:16:24.078Z (12 months ago)
- Language: TypeScript
- Size: 9.47 MB
- Stars: 52
- Watchers: 6
- Forks: 4
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
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.