-
Notifications
You must be signed in to change notification settings - Fork 2k
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
36 changed files
with
1,457 additions
and
982 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
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,24 @@ | ||
# Controllers | ||
|
||
deck.gl supports several models of event handling and viewport controls | ||
|
||
|
||
## Viewport Controls | ||
|
||
|
||
## React Integration | ||
|
||
Use the [`ViewportController`](docs/api-reference/react/viewport-controller.md) component. | ||
|
||
|
||
## States | ||
|
||
... | ||
|
||
|
||
## Customizing Controls | ||
|
||
|
||
|
||
## About Event Handling | ||
|
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
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
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,30 +1,18 @@ | ||
# Using deck.gl Standalone | ||
|
||
The deck.gl core library and layers have no dependencies on React or | ||
Mapbox GL and can be used by any JavaScript application. | ||
The deck.gl core library and layers have no dependencies on React or Mapbox GL and can be used by any JavaScript application. | ||
|
||
Note: This is a brief introduction to how an application might | ||
do a standalone integration with deck.gl. Using deck.gl this way will | ||
likely involve extra effort and is not recommended for casual | ||
applications. | ||
Note: This is a brief introduction to how an application might do a standalone integration with deck.gl. Using deck.gl this way will likely involve extra effort and is not recommended for casual applications. | ||
|
||
## Using deck.gl without react-map-gl | ||
|
||
It is possible to use deck.gl without react-map-gl. In this case | ||
the application will have to implement its own event handling | ||
(to zoom and pan the viewport, and forward hover and click events to deck.gl. | ||
Note that all deck.gl examples currently rely on react-map-gl's event | ||
handling. | ||
It is possible to use deck.gl without react-map-gl. In this case the application will have to implement its own event handling (to zoom and pan the viewport, and forward hover and click events to deck.gl. Note that all deck.gl examples currently rely on react-map-gl's event handling. | ||
|
||
## Using deck.gl without React | ||
|
||
The deck.gl [LayerManager](/docs/api-reference/layer-manager.md) class handles updates, drawing and picking for a set of layers. To use deck.gl without React, you may create | ||
your own instance of the `LayerManager` and implement the animation cycles: | ||
The deck.gl [LayerManager](/docs/api-reference/layer-manager.md) class handles updates, drawing and picking for a set of layers. To use deck.gl without React, you may create your own instance of the `LayerManager` and implement the animation cycles: | ||
|
||
* Use the `setViewport` method to update viewport. | ||
* Use the `updateLayers` method to update the list of layers with a | ||
freshly rendered list. | ||
* You can use the `drawLayers` method to draw the layers - it will only | ||
draw if some layer (some prop in some layer) has actually changed. | ||
* Call the `pickLayers` method on mouse and touch events to implement | ||
picking. | ||
* Use the `updateLayers` method to update the list of layers with a freshly rendered list. | ||
* You can use the `drawLayers` method to draw the layers - it will only draw if some layer (some prop in some layer) has actually changed. | ||
* Call the `pickLayers` method on mouse and touch events to implement picking. |
Oops, something went wrong.