-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colour_range for grid, but errors for screengrid
- Loading branch information
SymbolixAU
committed
Jul 31, 2018
1 parent
17084b3
commit a1f826b
Showing
6 changed files
with
32 additions
and
16 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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
|
||
function add_grid( map_id, grid_data, layer_id, cell_size, extruded, elevation_scale ) { | ||
|
||
//console.log( grid_data ); | ||
function add_grid( map_id, grid_data, layer_id, cell_size, extruded, elevation_scale, colour_range ) { | ||
|
||
const gridLayer = new deck.GridLayer({ | ||
id: 'grid-'+layer_id, // TODO | ||
data: grid_data, | ||
pickable: true, | ||
extruded: extruded, | ||
cellSize: cell_size, | ||
colorRange: to_rgba( colour_range ), | ||
elevationScale: elevation_scale, | ||
getPosition: d => decode_polyline( d.polyline )[0], | ||
onClick: info => layer_click( map_id, "grid", info ) | ||
}); | ||
|
||
update_layer( map_id, 'arc-'+layer_id, gridLayer ); | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.