forked from visgl/deck.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
289 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
## Arc Layer | ||
# Arc Layer | ||
|
||
The Arc Layer takes in paired latitude and longitude coordinated points and | ||
render them as arcs that links the starting and ending points. | ||
|
||
**Layer-specific Parameters** | ||
Inherits from all [Base Layer properties](/docs/layer.md). | ||
|
||
* `data` (array, required) array of objects: [{ position: {x0, y0, x1, y1}, | ||
color }, ...] | ||
## Layer-specific Properties | ||
|
||
##### `strokeWidth` (Number, optional) | ||
|
||
- Default: `1` | ||
|
||
The stroke width used to draw each arc. | ||
|
||
##### `getSourcePosition` (Function, optional) | ||
|
||
- Default: `object => object.sourcePosition` | ||
|
||
Method called to retrieve the source position of each object. | ||
|
||
##### `getTargetPosition` (Function, optional) | ||
|
||
- Default: `object => object.targetPosition` | ||
|
||
Method called to retrieve the target position of each object. | ||
|
||
##### `getSourceColor` (Function, optional) | ||
|
||
- Default: `object => object.color` | ||
|
||
Method called to determine the color of the source. | ||
|
||
If the method does not return a value for the given object, fallback to `[0, 0, 255]`. | ||
|
||
##### `getTargetColor` (Function, optional) | ||
|
||
- Default `object => object.color` | ||
|
||
Method called to determine the color of the source. | ||
|
||
If the method does not return a value for the given object, fallback to `[0, 0, 255]`. |
Oops, something went wrong.