-
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.
examples: Add playground example (#160)
- Loading branch information
Showing
105 changed files
with
6,580 additions
and
11,091 deletions.
There are no files selected for viewing
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/linestring/app.tsx → examples-wip/arrow-layers/linestring/app.tsx
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
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...ples/arrow-layers/multilinestring/app.tsx → ...-wip/arrow-layers/multilinestring/app.tsx
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
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/multipoint/app.tsx → examples-wip/arrow-layers/multipoint/app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/multipolygon/app.tsx → ...les-wip/arrow-layers/multipolygon/app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/point/app.tsx → examples-wip/arrow-layers/point/app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/polygon/app.tsx → examples-wip/arrow-layers/polygon/app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/text/app.tsx → examples-wip/arrow-layers/text/app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
examples/arrow-layers/trips/app.tsx → examples-wip/arrow-layers/trips/app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...yers/codesandbox/getting-started/index.js → ...-wip/codesandbox/getting-started/index.js
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
1 change: 1 addition & 0 deletions
1
.../codesandbox/getting-started/package.json → .../codesandbox/getting-started/package.json
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
4 changes: 4 additions & 0 deletions
4
...ayers/codesandbox/world-heritage/index.js → ...s-wip/codesandbox/world-heritage/index.js
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
1 change: 1 addition & 0 deletions
1
...s/codesandbox/world-heritage/package.json → ...p/codesandbox/world-heritage/package.json
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
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
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,5 +1,6 @@ | ||
{ | ||
"name": "editable-layers-editor", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
|
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
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,5 +1,6 @@ | ||
{ | ||
"name": "graph-layers-example", | ||
"version": "0.0.0", | ||
"private": true, | ||
"license": "MIT", | ||
"type": "module", | ||
|
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 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>deck.gl Playground</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href='https://unpkg.com/[email protected]/dist/maplibre-gl.css' rel='stylesheet' /> | ||
<style> | ||
body {margin: 0; font-family: sans-serif; overflow: hidden;} | ||
#app {width: 100vw; height: 100vh; display: flex; flex-direction: row; align-items: stretch;} | ||
#left-pane {flex: 0 1 40%; display: flex; flex-direction: column; align-items: stretch;} | ||
#left-pane select {flex: 0 0 34px; padding: 5px 35px 5px 5px; font-size: 16px; border: 1px solid #ccc; appearance: none;} | ||
#editor {flex: 0 1 100%;} | ||
#right-pane {flex: 0 1 60%; position: relative;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
<script type="module"> | ||
import {renderToDOM} from './src/app.tsx'; | ||
renderToDOM(document.getElementById('app')); | ||
</script> | ||
</html> |
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,60 @@ | ||
{ | ||
"description": "The deck.gl website hexagonlayer example (with added minimap)", | ||
"websiteUrl": "https://deck.gl/#/examples/core-layers/hexagon-layer", | ||
"initialViewState": { | ||
"id": "view-state", | ||
"longitude": -1.4157267858730052, | ||
"latitude": 52.232395363869415, | ||
"zoom": 6.6, | ||
"minZoom": 5, | ||
"maxZoom": 15, | ||
"pitch": 40.5, | ||
"bearing": -27.396674584323023 | ||
}, | ||
"views": [ | ||
{ | ||
"@@type": "MapView", | ||
"id": "main", | ||
"mapStyle": "https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json", | ||
"controller": true | ||
}, | ||
{ | ||
"@@type": "MapView", | ||
"id": "minimap", | ||
"mapStyle": "https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json", | ||
"width": "40%", | ||
"height": "40%", | ||
"x": "55%", | ||
"y": "5%", | ||
"clear": true, | ||
"viewState": { | ||
"id": "main", | ||
"pitch": 0, | ||
"bearing": 0, | ||
"zoom": 4 | ||
} | ||
} | ||
], | ||
"layers": [ | ||
{ | ||
"@@type": "HexagonLayer", | ||
"id": "heatmap", | ||
"data": "https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv", | ||
"coverage": 1, | ||
"elevationRange": [0, 3000], | ||
"elevationScale": 50, | ||
"extruded": true, | ||
"getPosition": "@@=[lng,lat]", | ||
"radius": 1000, | ||
"upperPercentile": 100, | ||
"colorRange": [ | ||
[1, 152, 189], | ||
[73, 227, 206], | ||
[216, 254, 181], | ||
[254, 237, 177], | ||
[254, 173, 84], | ||
[209, 55, 78] | ||
] | ||
} | ||
] | ||
} |
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,47 @@ | ||
{ | ||
"description": "The deck.gl website hexagonlayer example in JSON format", | ||
"websiteUrl": "https://deck.gl/#/examples/core-layers/hexagon-layer", | ||
"initialViewState": { | ||
"longitude": -1.4157267858730052, | ||
"latitude": 52.232395363869415, | ||
"zoom": 6.6, | ||
"minZoom": 5, | ||
"maxZoom": 15, | ||
"pitch": 40.5, | ||
"bearing": -27.396674584323023 | ||
}, | ||
"views": [ | ||
{ | ||
"@@type": "MapView", | ||
"controller": true, | ||
"mapStyle": "https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json" | ||
} | ||
], | ||
"layers": [ | ||
{ | ||
"@@type": "HexagonLayer", | ||
"id": "heatmap", | ||
"data": "https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv", | ||
"coverage": 1, | ||
"pickable": true, | ||
"autoHighlight": true, | ||
"elevationRange": [ | ||
0, | ||
3000 | ||
], | ||
"elevationScale": 50, | ||
"extruded": true, | ||
"getPosition": "@@=[lng,lat]", | ||
"radius": 1000, | ||
"upperPercentile": 100, | ||
"colorRange": [ | ||
[1, 152, 189], | ||
[73, 227, 206], | ||
[216, 254, 181], | ||
[254, 237, 177], | ||
[254, 173, 84], | ||
[209, 55, 78] | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.