-
Notifications
You must be signed in to change notification settings - Fork 33
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
1 parent
a9702c8
commit 79c49bf
Showing
3 changed files
with
165 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# lonboard | ||
|
||
<img src="assets/longboard-wikimedia.jpeg" height="300" /> | ||
![](docs/img/scatterplot-layer-network-speeds.jpg) | ||
|
||
[CC-BY from Wikipedia](https://commons.wikimedia.org/wiki/File:Longboard.JPG) | ||
## Install | ||
|
||
> This is a new binding to the [deck.gl](https://deck.gl) geospatial data visualization library. A "deck" is the part of a skateboard you ride on. What's a fast, geospatial skateboard? A <em>lon</em>board. | ||
``` | ||
pip install --pre lonboard | ||
``` | ||
|
||
## Install | ||
## Why the name? | ||
|
||
This project requires [npm](https://www.npmjs.com/), [python](https://www.python.org/downloads/)>=3.11 and [poetry](https://python-poetry.org/). | ||
<img src="assets/longboard-wikimedia.jpeg" height="300" /> | ||
|
||
```bash | ||
npm install esbuild | ||
npm run build | ||
poetry install | ||
``` | ||
[CC-BY from Wikipedia](https://commons.wikimedia.org/wiki/File:Longboard.JPG) | ||
|
||
> This is a new binding to the [deck.gl](https://deck.gl) geospatial data visualization library. A "deck" is the part of a skateboard you ride on. What's a fast, geospatial skateboard? A <em>lon</em>board. |
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# PathLayer | ||
|
||
The `PathLayer` renders lists of coordinate points as extruded polylines with mitering. | ||
|
||
## Properties | ||
|
||
<!-- Inherits from all [Base Layer](https://deck.gl/docs/api-reference/core/layer) properties. --> | ||
|
||
### Render Options | ||
|
||
#### `width_units` | ||
|
||
- Type: `str`, optional | ||
- Default: `'meters'` | ||
|
||
The units of the line width, one of `'meters'`, `'common'`, and `'pixels'`. See [unit system](https://deck.gl/docs/developer-guide/coordinate-systems#supported-units). | ||
|
||
#### `width_scale` | ||
|
||
- Type: `float`, optional | ||
- Default: `1` | ||
|
||
The path width multiplier that multiplied to all paths. | ||
|
||
#### `width_min_pixels` | ||
|
||
- Type: `float`, optional | ||
- Default: `0` | ||
|
||
The minimum path width in pixels. This prop can be used to prevent the path from getting too thin when zoomed out. | ||
|
||
#### `width_max_pixels` | ||
|
||
- Type: `float`, optional | ||
- Default: `None` | ||
|
||
The maximum path width in pixels. This prop can be used to prevent the path from getting too thick when zoomed in. | ||
|
||
#### `cap_rounded` | ||
|
||
- Type: `bool`, optional | ||
- Default: `false` | ||
|
||
Type of caps. If `true`, draw round caps. Otherwise draw square caps. | ||
|
||
#### `joint_rounded` | ||
|
||
- Type: `bool`, optional | ||
- Default: `false` | ||
|
||
Type of joint. If `true`, draw round joints. Otherwise draw miter joints. | ||
|
||
#### `billboard` | ||
|
||
- Type: `bool`, optional | ||
- Default: `false` | ||
|
||
If `true`, extrude the path in screen space (width always faces the camera). | ||
If `false`, the width always faces up. | ||
|
||
#### `miter_limit` | ||
|
||
- Type: `float`, optional | ||
- Default: `4` | ||
|
||
The maximum extent of a joint in ratio to the stroke width. | ||
Only works if `jointRounded` is `false`. | ||
|
||
### Data Accessors | ||
|
||
#### `get_color` | ||
|
||
- Type: Array, optional | ||
- Default `[0, 0, 0, 255]` | ||
|
||
The rgba color of each object, in `r, g, b, [a]`. Each component is in the 0-255 range. | ||
|
||
- If an array is provided, it is used as the color for all objects. | ||
- If a function is provided, it is called on each object to retrieve its color. | ||
|
||
#### `get_width` | ||
|
||
- Type: Number, optional | ||
- Default: `1` | ||
|
||
The width of each path, in units specified by `width_units` (default `'meters'`). | ||
|
||
- If a number is provided, it is used as the width for all paths. | ||
- If a function is provided, it is called on each path to retrieve its width. |
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