You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
-[getWaypoints](#getwaypoints)
17
17
-[removeRoutes](#removeroutes)
18
18
-[on](#on)
19
+
-[off](#off)
19
20
20
21
## MapboxDirections
21
22
@@ -168,7 +169,8 @@ Subscribe to events that happen within the plugin.
168
169
169
170
**Parameters**
170
171
171
-
-`type`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** name of event. Available events and the data passed into their respective event objects are:- **clear**`{ type: } Type is one of 'origin' or 'destination'`
172
+
-`type`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** name of event. Available events and the data passed into their respective event objects are:
173
+
-**clear**`{ type: } Type is one of 'origin' or 'destination'`
172
174
-**loading**`{ type: } Type is one of 'origin' or 'destination'`
173
175
-**profile**`{ profile } Profile is one of 'driving', 'walking', or 'cycling'`
174
176
-**origin**`{ feature } Fired when origin is set`
@@ -178,3 +180,21 @@ Subscribe to events that happen within the plugin.
178
180
-`fn`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** function that's called when the event is emitted.
-`type`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** name of event. Available events and the data passed into their respective event objects are:
191
+
-**clear**`{ type: } Type is one of 'origin' or 'destination'`
192
+
-**loading**`{ type: } Type is one of 'origin' or 'destination'`
193
+
-**profile**`{ profile } Profile is one of 'driving', 'walking', or 'cycling'`
194
+
-**origin**`{ feature } Fired when origin is set`
195
+
-**destination**`{ feature } Fired when destination is set`
196
+
-**route**`{ route } Fired when a route is updated`
197
+
-**error**\`{ error } Error as string
198
+
-`fn`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** function used when the event was registered.
0 commit comments