React Map Gl screenshot

React Map Gl

Author Avatar Theme by Visgl
Updated: 20 May 2025
8105 Stars

React friendly API wrapper around MapboxGL JS

Overview

React-map-gl is a suite of React components that provide a React API for mapbox-gl or maplibre-gl. It offers a seamless way to integrate interactive maps into React applications by leveraging the capabilities of these mapping libraries.

Features

  • React Components: Provides React components that enable easy integration of interactive maps into React applications.
  • Mapbox-gl Integration: Offers support for both mapbox-gl and maplibre-gl libraries for rendering maps.
  • Map Interactivity: Allows for creating interactive maps with features like zooming, panning, and popup interactions.
  • Custom Styling: Supports custom styling of maps to match the design needs of the application.
  • Map Data Services: Integration with Mapbox data services for accessing map tiles and other geographical data.

Installation

To install react-map-gl, ensure you have React version 16.3 or above. You can install it using npm or yarn:

npm install react-map-gl
# or
yarn add react-map-gl

Once installed, you can start using the components in your React application.

Summary

React-map-gl provides a convenient way to incorporate interactive maps into React applications by offering a React API for mapbox-gl or maplibre-gl. With features like custom styling, map interactivity, and support for map data services, it simplifies the process of integrating maps into React projects. Install the package, follow the installation guide, and start creating engaging maps within your React applications.