An open API service indexing awesome lists of open source software.

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

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.