Skip to content

Commit 3ca1348

Browse files
authored
Merge pull request #1 from jbccollins/patch-1
Update README.md
2 parents 93ff241 + 338139d commit 3ca1348

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
------------
77

8-
This is package was created how plugin to [react-leaflet](https://github.com/PaulLeCam/react-leaflet) . It create player which animates polyline and control it. It gives functions stop, play, next point, prev point, and control to speed of polyline. It have dynamic progress of line, multiсolor
8+
This is package was created as a plugin for [react-leaflet](https://github.com/PaulLeCam/react-leaflet) . It creates a player which animates along a polyline. It provides functions for pause, play and playback speed. The track colors may be customized.
99

1010
#### Install
1111

@@ -70,18 +70,17 @@ yarn add leaflet-react-track-player
7070

7171
| Prop | Type | Default | Description |
7272
| :------------ | :------------ | :------------ | :------------ |
73-
| track | Array | [] | It is points for polyline |
74-
| optionMultyIdxFn | Function | () => {} | Function split track on colors |
75-
| optionsMulty | Array | [] | It is colors for split |
76-
| customMarker | Boolean | false | Need setting your icon? |
77-
| iconCustomMarker | String | "" | Path to your icon |
78-
| customCourse | Boolean | false | Need changing course of marker? You need have course in points. Look at demo |
79-
| timeFormat | String | "YYMMDDHHmmss000" | Time format is for mode "time". You need times stamp in points. Look at demo |
80-
| styleMarker | String | "" | It is style for marker |
81-
| speedArray | Array | [] | It is array with sizes |
82-
| progressFormat | String | "default" | Mode "default" use number point how value for progress. Mode "time" use time stamp how value for progress. Mode "distance" use range in meters how value for progress |
83-
| callbackFinish | Function | () => {} | It is callback after finish |
84-
| callbackNext | Function | () => {} | It is callback after switch on next point |
85-
| callbackPrev | Function | () => {} | It is callback after switch on prev point |
86-
| callbackSpeed | Function | () => {} | It is callback after change speed |
87-
| callbackSpeed | Function | () => {} | It is callback after animation |
73+
| track | Array | [] | The points that define the polyline |
74+
| optionMultyIdxFn | Function | () => {} | Function to defined track segment colors |
75+
| optionsMulty | Array | [] | The colors used for track segments |
76+
| customMarker | Boolean | false | Should use a custom marker icon |
77+
| iconCustomMarker | String | "" | Path to your marker icon |
78+
| customCourse | Boolean | false | Need changing course of marker? You need have course in points. See demo |
79+
| timeFormat | String | "YYMMDDHHmmss000" | Time format is for mode "time". You need times stamps in points. See demo |
80+
| styleMarker | String | "" | Inline style for the marker |
81+
| speedArray | Array | [] | List of speeds |
82+
| progressFormat | String | "default" | Mode "default" uses the number of points as the value for progress. Mode "time" uses time stamps as the value for progress. Mode "distance" uses range in meters as the value for progress |
83+
| callbackFinish | Function | () => {} | Called after one full track run |
84+
| callbackNext | Function | () => {} | Called after next point in the polyline is reached |
85+
| callbackPrev | Function | () => {} | Called after previous point in the polyline is reached |
86+
| callbackSpeed | Function | () => {} | Called after changing spead |

0 commit comments

Comments
 (0)