Release date: July 27th, 2017
- Latest Mapbox GL JS: Bumps
Mapbox GL JS
to 0.38. - Multi-Touch Support: Full support for multi-touch gestures such as pinch-to-zoom and rotate.
- New Components: The
MapGL
component has been split intoStaticMap
andInteractiveMap
(the default). Also,Popup
,Marker
,NavigationControl
have been added to provide better React parity with theMapbox GL JS
API. - Improved Overlay Components: Supplying viewport props (
width
height
zoom
longitude
andlatitude
) are no longer required if you renderSVGOverlay
,CanvasOverlay
orHTMLOverlay
as a child of the map. Perspective mode is now supported in all overlays. - New Props:
maxPitch
,minPitch
,dragPan
,doubleClickZoom
,touchZoomRotate
,scrollZoom
are now provided to allow granular control of map interactivity. - Documentation: Significantly expanded and linked with our other geospatial frameworks.
- Examples: New stand-alone examples to get you started instantly with the new features.
- Event Handling: New event handling architecture that enables full customization of event handling (experimental).
This is a wrapper on top of StaticMap
. It takes all the props of StaticMap
and additional ones such as onViewportChange
, scrollZoom
, dragRotate
, etc. to control interactivity on the map. See Source Code for more information.
This is the React wrapper around Mapbox GL JS
and takes in viewport properties such as width
, height
, latitude
, longitude
. Style diffing and updating logic also live here. See Source Code for more information.
- Three overlays (
ScatterplotOverlay
,DraggablePointsOverlay
,ChoroplethOverlay
), have been moved out of the library and are now only provided as examples.
- Property Names - some prop names have been modernized, the old ones will still work for now with a warning.
- Internal Properties such as
isHovering
,isDragging
,startDragLngLat
have been removed. These were never meant to be useful publicly and have caused confusions in the past.
- fitBounds:
fitBounds
has been moved to another repository and has been rewritten to provide a more logical interface.
For more information, see the Upgrade Guide
.
Date: Jan 17, 2017
- Latest mapbox-gl: Bump
mapbox-gl
to v0.31.0 - new maxZoom prop - Add
maxZoom
prop and defaults to20
- New onLoad prop - Add
onLoad
event handler - new onClick prop - Add
onClick
prop handler (#140)
- Perspective Mode - Now supports
bearing
andpitch
properties, per mapbox-gl-js api documentation. These props default to 0 which means that maps will still be rendered in flat/ortographic mode when they are not provided - Support for ES6 imports - The map overlay components (HTMLOverlay, CanvasOverlay, SVGOverlay etc) previously had to be imported via their relative source paths can now be imported directly using `import {SVGOverlay} from 'react-map-gl'.
Initial public version