React Component Library for Mapbox GL JS
The Urbica React Mapbox GL JS is a React component library that provides a seamless integration with Mapbox GL JS, a JavaScript library for interactive map rendering using WebGL. This project aims to closely resemble the Mapbox GL JS API and was inspired by the uber/react-map-gl project.
To install the Urbica React Mapbox GL JS, follow these steps:
If you are using npm:
npm install @urbica/react-map-gl
If you are using yarn:
yarn add @urbica/react-map-gl
Optional Dependencies: If you want to use the LanguageControl component, install the following packages:
If you are using npm:
npm install mapbox-gl
npm install @mapbox/mapbox-gl-language
If you are using yarn:
yarn add mapbox-gl
yarn add @mapbox/mapbox-gl-language
Overall, the Urbica React Mapbox GL JS is a powerful React component library that seamlessly integrates with Mapbox GL JS. It provides a wide range of components to create interactive and customizable maps. The library closely resembles the Mapbox GL JS API and offers additional features like custom layers and language switching.