From c61df730973109bf7d6ceb09b43d18f90f718180 Mon Sep 17 00:00:00 2001 From: Victor Powell Date: Sun, 11 Oct 2015 19:38:31 -0700 Subject: [PATCH] Add mapboxApiAccessToken as a prop to document it. --- src/map.react.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/map.react.js b/src/map.react.js index 16e053c1..12f73b5b 100644 --- a/src/map.react.js +++ b/src/map.react.js @@ -100,13 +100,18 @@ var MapGL = React.createClass({ */ zoom: React.PropTypes.number.isRequired, /** - * The mapbox style the component should use. Can either be a string url + * The Mapbox style the component should use. Can either be a string url * or a MapboxGL style Immutable.Map object. */ mapStyle: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.instanceOf(Immutable.Map) ]), + /** + * The Mapbox API access token to provide to mapbox-gl-js. This is required + * when using Mapbox provided vector tiles and styles. + */ + mapboxApiAccessToken: React.PropTypes.string, /** * `onChangeViewport` callback is fired when the user interacted with the * map. The object passed to the callback containers `latitude`,