Skip to content

Releases: visgl/react-map-gl

4.0.3

19 Dec 04:02
Compare
Choose a tag to compare
  • Cache the interactive context to prevent context thrashing (#664)
  • Remove math.gl from dependencies (#666)

4.0.2

19 Dec 04:03
Compare
Choose a tag to compare
  • Fix popup bug when closeOnClick is off (#660)

4.0.1

19 Dec 04:03
Compare
Choose a tag to compare
  • Bump maxZoom support to 24 (#659)

v3.0.0

01 Aug 20:33
Compare
Choose a tag to compare

Version 3.0.0 (July 27th, 2017)

Highlights

  • 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 into StaticMap and InteractiveMap (the default). Also, Popup, Marker, NavigationControl have been added to provide better React parity with the Mapbox GL JS API.
  • Improved Overlay Components: Supplying viewport props (width height zoom longitude and latitude) are no longer required if you render SVGOverlay, CanvasOverlay or HTMLOverlay 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).

Components

InteractiveMap (New, MapGL replacement)

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.

StaticMap (New)

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.

Overlays

  • Three overlays (ScatterplotOverlay, DraggablePointsOverlay, ChoroplethOverlay), have been moved out of the library and are now only provided as examples.

Property Changes

  • 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.

Utilities

  • 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.

v2.0.3

18 May 20:16
Compare
Choose a tag to compare

Version 2.0.3 (May 18, 2017)

New Props

  • Added scrollZoomEnabled prop to allow toggling of scroll to zoom behavior.
    This is enabled by default (no change in existing functionality). (#246)
  • Added minZoom prop to allow specifying minimum zoom. This is passed directly
    down to the mapbox-gl instance. (#247)

v2.0.2

10 Feb 02:04
Compare
Choose a tag to compare

Version 2.0.2 (Feb 09, 2017)

Minor Fixes

  • Changed postinstall script again to use postinstall.js to run
    flow-remove-types. This attempts to resolve cross-platform issues. (#192)

v2.0.1

24 Jan 20:01
Compare
Choose a tag to compare

Version 2.0.1 (Jan 24, 2017)

Minor Fixes

  • Fixed calculation of map pitch during interaction
  • Changed postinstall script

v2.0.0

17 Jan 21:59
Compare
Choose a tag to compare

Version 2.0.0 (Jan 17, 2017)

Reasons for the major version bump

  • We updated to mapbox-gl 0.31.0 which introduced flow types as well as having
    a hard dependency on Node >= v4. We now assume that you are on Node >= v4
    and npm >= v3.
  • We want >= v2.0.0 of react-map-gl to continue tracking mapbox-gl updates
    as closely as possible. This means minor / patch updates will be published
    more frequently.
  • This also marks the start of more aggressive development on react-map-gl
    and we will start rolling out bigger updates in the coming months.

New Features & Updates

  • Bump mapbox-gl to v0.31.0
  • Add maxZoom prop and defaults to 20
  • Add onLoad event handler
  • Add onClick prop handler (#140)

Fixes

  • Ensure fitBounds doesn't return NaN zoom value (#159)
  • Use 'changedTouches' for 'touchend' / 'touchcancel' events (#164)
  • Typo fix in draggable-points overlay (#178)
  • Remove mapbox-gl's Point dependency from map-interactions. (#161)

Miscellaneous

  • Added more info about usage with Webpack in README

v1.7.0

03 Dec 03:59
Compare
Choose a tag to compare
1.7.0