Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(website): Added two new examples to the site #3076

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/experimental/slpk-in-browser/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Container = styled.div`
margin: 10px;
line-height: 28px;
border-radius: 8px;
font-size: 13px;
`;

interface ControlPanelProps {
Expand All @@ -24,6 +25,7 @@ interface ControlPanelProps {
export const ControlPanel = ({onFileSelected}: ControlPanelProps) => {
return (
<Container>
<div>Choose *.slpk file from your filesystem</div>
<input
type="file"
accept=".slpk"
Expand Down
2 changes: 1 addition & 1 deletion examples/experimental/slpk-via-range-requests/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Container = styled.div`
margin: 10px;
line-height: 28px;
border-radius: 8px;
font-size: 13px;
`;

interface ControlPanelProps {
Expand All @@ -25,6 +26,7 @@ export const ControlPanel = ({onFileSelected}: ControlPanelProps) => {
const [url, setUrl] = useState<string>('')
return (
<Container>
<div>Enter SLPK file URL<br/>Server should support HEAD and range requests</div>
<input
type="text"
value={url}
Expand Down
2 changes: 2 additions & 0 deletions website/src/examples-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const sidebars = {
'i3s-building-scene-layer',
'i3s-picking',
'i3s-colorization-by-attributes',
'i3s-slpk-in-browser',
'i3s-slpk-via-range-requests',
'3d-tiles'
]
},
Expand Down
7 changes: 7 additions & 0 deletions website/src/examples/i3s-slpk-in-browser.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# I3S Open SLPK in browser

import Demo from 'examples/experimental/slpk-in-browser/src/app';

<div style={{height: 'calc(100vh - var(--ifm-navbar-height))'}}>
<Demo />
</div>
7 changes: 7 additions & 0 deletions website/src/examples/i3s-slpk-via-range-requests.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# I3S Open SLPK via range requests

import Demo from 'examples/experimental/slpk-via-range-requests/src/app';

<div style={{height: 'calc(100vh - var(--ifm-navbar-height))'}}>
<Demo />
</div>
Loading