Skip to content

Commit

Permalink
fix gallery examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Dec 18, 2019
1 parent 3598b12 commit 424485e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/gallery/src/icon-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<script type="text/javascript">

const {DeckGL, IconLayer, LineLayer, ScatterplotLayer, TextLayer, COORDINATE_SYSTEM} = deck;
const {DeckGL, OrthographicView, IconLayer, LineLayer, ScatterplotLayer, TextLayer, COORDINATE_SYSTEM} = deck;

const deckgl = new DeckGL({
views: new OrthographicView(),
Expand Down
4 changes: 2 additions & 2 deletions examples/gallery/src/point-cloud-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<script type="text/javascript">

const {DeckGL, PointCloudLayer, COORDINATE_SYSTEM} = deck;
const {DeckGL, OrbitView, PointCloudLayer, COORDINATE_SYSTEM} = deck;

// One million points
const SAMPLE_SIZE = 1e6;
Expand Down Expand Up @@ -64,7 +64,7 @@

new DeckGL({
views: [new OrbitView()],
initialViewState: {rotationX: -45, rotationOrbit: -45, zoom: 5},
initialViewState: {rotationX: 45, rotationOrbit: -45, zoom: 5},
controller: true,
layers: [
new PointCloudLayer({
Expand Down
5 changes: 3 additions & 2 deletions examples/gallery/src/viewport-transition.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@
const deckgl = new DeckGL({
mapboxApiAccessToken: '<mapbox-access-token>',
mapStyle: 'mapbox://styles/mapbox/light-v9',
initialViewState: {
viewState: {
longitude: CITIES[0].longitude,
latitude: CITIES[0].latitude,
zoom: 10
},
controller: true,
onViewStateChange: ({viewState}) => deckgl.setProps({viewState}),
layers: [
new ScatterplotLayer({
data: CITIES,
Expand All @@ -88,7 +89,7 @@
latitude: d.latitude,
zoom: 10,
transitionInterpolator: new FlyToInterpolator(),
transitionDuration: 5000
transitionDuration: 'auto'
}
})
});
Expand Down

0 comments on commit 424485e

Please sign in to comment.