Skip to content

Commit

Permalink
added api and profile to default props
Browse files Browse the repository at this point in the history
  • Loading branch information
neeleshbisht99 committed Jul 15, 2020
1 parent 2169d24 commit 97b4238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-map-gl-directions",
"version": "1.0.3",
"version": "1.0.4",
"description": "React wrapper for @mapbox/mapbox-gl-directions, for use with react-map-gl",
"source": "src/index.js",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ class Directions extends PureComponent {
static defaultProps = {
position: 'top-right',
zoom: 16,
profile: 'walking',
api: 'https://api.mapbox.com/directions/v5/',
profile: 'mapbox/driving-traffic',
onInit: () => {},
onClear: () => {},
onLoading: () => {},
Expand Down

0 comments on commit 97b4238

Please sign in to comment.