2017-10-20 12:57:24 -07:00
2017-08-29 11:42:17 -07:00
2017-10-20 12:57:24 -07:00
2017-08-29 11:42:17 -07:00
2017-08-29 11:42:17 -07:00
2017-10-20 12:57:24 -07:00
2017-08-29 11:42:17 -07:00
2017-08-29 11:42:17 -07:00

version build downloads

Introduction

react-map-gl is a suite of React components for Mapbox GL JS, a WebGL-powered vector and raster tile mapping library. In addition to exposing MapboxGL functionality to React apps, react-map-gl also integrates seamlessly with deck.gl.

Example

import ReactMapGL from 'react-map-gl';

<ReactMapGL
  width={400}
  height={400}
  latitude={37.7577}
  longitude={-122.4376}
  zoom={8}
  onViewportChange={(viewport) => {
    const {width, height, latitude, longitude, zoom} = viewport;
    // Optionally call `setState` and use the state to update the map.
  }}
/>
Description
React friendly API wrapper around MapboxGL JS
Readme Multiple Licenses 81 MiB
Languages
TypeScript 65.8%
JavaScript 31.9%
CSS 0.9%
MDX 0.8%
Shell 0.3%
Other 0.3%