-
Notifications
You must be signed in to change notification settings - Fork 29
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
6 changed files
with
105 additions
and
12 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
21 changes: 21 additions & 0 deletions
21
docs/modules/editable-layers/developer-guide/configuration.md
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,21 @@ | ||
# Configuration | ||
|
||
Editable layers need to be configured. | ||
|
||
## Edit Modes | ||
|
||
The primary way of configuring editable layers is to provide a list of edit modes. | ||
Editable layers accept `EditMode`s that provide a way of specifying what user interactions are supported in order to: | ||
|
||
- create and manipulate GeoJSON features and geometries. | ||
- select and duplicate geometries. | ||
- measure geometries | ||
- create custom reusable interactions | ||
|
||
A range of Edit Modes are provided by the `@deck.gl-community/editable-layers` module, and applications can also define custom edit modes. | ||
|
||
Some examples of provided edit modes are: | ||
|
||
- `ViewMode` - No edits are possible, but selection is still possible. | ||
- `DuplicateMode` - User can duplicate and translate a feature by clicking selected feature and dragging anywhere on the screen. | ||
- `CompositeMode` - Use `CompositeMode` to combine multiple modes. _Not all combinations are guaranteed to work._ |
33 changes: 33 additions & 0 deletions
33
docs/modules/editable-layers/developer-guide/data-model.md
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,33 @@ | ||
# Data Model | ||
|
||
The core editable layers are designed to work with GeoJSON style "features". The basic structure of each row in a table is: | ||
|
||
```ts | ||
type Feature = { | ||
type: 'Feature', | ||
geometry: {type: '...', coordinates: [...]}, | ||
properties: { | ||
[columnName: string] | ||
} | ||
} | ||
|
||
## Geometry | ||
|
||
## Properties | ||
|
||
In general, the properties field in a feature is used to store the non-geometry column values for the row. | ||
|
||
|
||
## Edit Properties | ||
|
||
The editable-layers framework adds certain properties | ||
|
||
### `properties.editProperties` | ||
|
||
this is an object that contain shape specific properties, consult each edit mode for detailed documentation | ||
|
||
### `properties.shape` (deprecated) | ||
|
||
The layer stores the type of shape represented by a feature in the `properties.shape` field. | ||
|
||
`properties.shape` is now deprecated and replaced by `properties.editProperties.shape` |
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 +1,10 @@ | ||
# Upgrade Guide | ||
|
||
Modules in `@deck.gl-community` are independently maintained, so this page will only list occasional major changes. | ||
|
||
Please refer the documentation of each module for detailed upgrade guides, e.g: | ||
|
||
- [`graph-layers`](/docs/modules/graph-layers#upgrade-guide) | ||
- [`arrow-layers`](/docs/modules/arrow-layers#upgrade-guide) | ||
- [`editable-layers`](/docs/modules/editable-layers#upgrade-guide) | ||
- [`layers`](/docs/modules/editable-layers#upgrade-guide) |
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,21 +1,23 @@ | ||
# What's New | ||
|
||
The detailed release notes of each module can be found in the module-specific docs section. | ||
Modules in `@deck.gl-community` are independently maintained, so this page will only list occasional major changes. | ||
|
||
High-level updates are | ||
Please refer the documentation of each module for detailed news, e.g: | ||
|
||
- [`graph-layers`](/docs/modules/graph-layers#whats-new) | ||
- [`arrow-layers`](/docs/modules/arrow-layers#whats-new) | ||
- [`editable-layers`](/docs/modules/editable-layers#uhats-new) | ||
- [`layers`](/docs/modules/editable-layers#whats-new) | ||
|
||
November 20, 2024 [**`@deck.gl-community/editable-layers`**](/docs/modules/editable-layers)) - When drawing circles or ellipses properties of the created geometry are now stored in the vector's properties. | ||
|
||
## High-Level updates | ||
|
||
April 15, 2024: [**`@deck.gl-community/editable-layers`**](/docs/modules/editable-layers)) v9 - This new layer pack is a fork of Uber's no longer maintained [nebula.gl](https://nebula.gl) framework. nebula.gl has been an important part of the deck.gl ecosystem but the repository has lacked maintainers for several years and the repository no longer accepts external contributions. | ||
November 20, 2024 [**`@deck.gl-community/editable-layers`**](/docs/modules/editable-layers)) - When drawing circles or ellipses properties of the created geometry are now stored in the vector's properties. | ||
|
||
April 15, 2024: [**`@deck.gl-community/editable-layers`**](/docs/modules/editable-layers)) v9 - This new layer pack is a fork of Uber's [nebula.gl](https://nebula.gl) framework which is no longer maintained. nebula.gl has been an important part of the deck.gl ecosystem but the repository has lacked maintainers for several years and the repository no longer accepts external contributions. | ||
|
||
Feb 29, 2024: [**`@deck.gl-community/layers`**](/docs/modules/layers) v9 - deck,gl community-layers now support deck.gl v9. | ||
|
||
|
||
December 22, 2023: [**`@deck.gl-community/layers`**](/docs/modules/layers) v0 - A new module intended to containing a collection of useful community layers. Initial layers are `TileSourceLayer`, `DataDrivenTile3DLayer`. | ||
|
||
|
||
April 14, 2023: [**`@deck-graph-layers`**](/docs/modules/graph-layers) - A new layer pack for rendering graphs (nodes and edges). Forked from Uber's archived [graph.gl](https://graph.gl) repo. | ||
|