Xiaoji Chen 32d0972226 Fix MapControls regression (#386)
- Register additional events with the event manager
- Update docs
2017-10-20 12:38:18 -07:00
..
2017-07-03 19:20:52 -07:00
2017-07-26 17:37:14 -07:00
2017-10-04 14:01:04 -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.
  }}
/>