Skip to content

Commit 97b4238

Browse files
added api and profile to default props
1 parent 2169d24 commit 97b4238

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-map-gl-directions",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "React wrapper for @mapbox/mapbox-gl-directions, for use with react-map-gl",
55
"source": "src/index.js",
66
"main": "dist/index.js",

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class Directions extends PureComponent {
168168
static defaultProps = {
169169
position: 'top-right',
170170
zoom: 16,
171-
profile: 'walking',
171+
api: 'https://api.mapbox.com/directions/v5/',
172+
profile: 'mapbox/driving-traffic',
172173
onInit: () => {},
173174
onClear: () => {},
174175
onLoading: () => {},

0 commit comments

Comments
 (0)