From 5e8fab4ed67f5eb5a94d0b4a3001827fb0c15e78 Mon Sep 17 00:00:00 2001 From: Daria Terekhova Date: Wed, 4 Sep 2024 16:03:20 +0300 Subject: [PATCH 1/2] Added two new examples to the site --- examples/experimental/slpk-in-browser/src/app.tsx | 2 +- .../slpk-in-browser/src/components/control-panel.tsx | 2 ++ examples/experimental/slpk-via-range-requests/src/app.tsx | 2 +- .../src/components/control-panel.tsx | 2 ++ website/src/examples-sidebar.js | 2 ++ website/src/examples/i3s-slpk-in-browser.mdx | 7 +++++++ website/src/examples/i3s-slpk-via-range-requests.mdx | 7 +++++++ 7 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 website/src/examples/i3s-slpk-in-browser.mdx create mode 100644 website/src/examples/i3s-slpk-via-range-requests.mdx diff --git a/examples/experimental/slpk-in-browser/src/app.tsx b/examples/experimental/slpk-in-browser/src/app.tsx index 65e21d4caa..58fe52abaa 100644 --- a/examples/experimental/slpk-in-browser/src/app.tsx +++ b/examples/experimental/slpk-in-browser/src/app.tsx @@ -6,7 +6,7 @@ import maplibregl from 'maplibre-gl'; import 'maplibre-gl/dist/maplibre-gl.css'; import DeckGL from '@deck.gl/react'; -import {MapController, FlyToInterpolator, MapViewState} from '@deck.gl/core/typed'; +import {MapController, FlyToInterpolator, MapViewState} from '@deck.gl/core'; import {COORDINATE_SYSTEM, I3SLoader, parseSLPKArchive} from '@loaders.gl/i3s'; import {Tileset3D} from '@loaders.gl/tiles'; diff --git a/examples/experimental/slpk-in-browser/src/components/control-panel.tsx b/examples/experimental/slpk-in-browser/src/components/control-panel.tsx index 0a8b408fea..79ea0905e0 100644 --- a/examples/experimental/slpk-in-browser/src/components/control-panel.tsx +++ b/examples/experimental/slpk-in-browser/src/components/control-panel.tsx @@ -15,6 +15,7 @@ const Container = styled.div` margin: 10px; line-height: 28px; border-radius: 8px; + font-size: 13px; `; interface ControlPanelProps { @@ -24,6 +25,7 @@ interface ControlPanelProps { export const ControlPanel = ({onFileSelected}: ControlPanelProps) => { return ( +
Choose *.slpk file from your filesystem
{ const [url, setUrl] = useState('') return ( +
Enter SLPK file URL
Server should support HEAD and range requests
+ + diff --git a/website/src/examples/i3s-slpk-via-range-requests.mdx b/website/src/examples/i3s-slpk-via-range-requests.mdx new file mode 100644 index 0000000000..cca17056e9 --- /dev/null +++ b/website/src/examples/i3s-slpk-via-range-requests.mdx @@ -0,0 +1,7 @@ +# I3S Open SLPK via range requests + +import Demo from 'examples/experimental/slpk-via-range-requests/src/app'; + +
+ +
From d8948991172e8eaf705985f7ec6e8d8085680ce5 Mon Sep 17 00:00:00 2001 From: Daria Terekhova Date: Wed, 4 Sep 2024 18:51:56 +0300 Subject: [PATCH 2/2] Removed range-request example from the website --- website/src/examples-sidebar.js | 1 - website/src/examples/i3s-slpk-via-range-requests.mdx | 7 ------- 2 files changed, 8 deletions(-) delete mode 100644 website/src/examples/i3s-slpk-via-range-requests.mdx diff --git a/website/src/examples-sidebar.js b/website/src/examples-sidebar.js index f5f839ef0d..9eaf84d0ce 100644 --- a/website/src/examples-sidebar.js +++ b/website/src/examples-sidebar.js @@ -43,7 +43,6 @@ const sidebars = { 'i3s-picking', 'i3s-colorization-by-attributes', 'i3s-slpk-in-browser', - 'i3s-slpk-via-range-requests', '3d-tiles' ] }, diff --git a/website/src/examples/i3s-slpk-via-range-requests.mdx b/website/src/examples/i3s-slpk-via-range-requests.mdx deleted file mode 100644 index cca17056e9..0000000000 --- a/website/src/examples/i3s-slpk-via-range-requests.mdx +++ /dev/null @@ -1,7 +0,0 @@ -# I3S Open SLPK via range requests - -import Demo from 'examples/experimental/slpk-via-range-requests/src/app'; - -
- -