Skip to content

Instantly share code, notes, and snippets.

View staffordsmith83's full-sized avatar

Staf Smith staffordsmith83

  • Smith Field & Spatial
  • Perth, Western Australia
View GitHub Profile
@cheeaun
cheeaun / mapbpx-tiles3dloader.js
Created October 9, 2021 01:29
Mapbox GL JS + Deck.gl Tiles3DLoader example
import MapboxLayer from '@deck.gl/mapbox/dist/esm/mapbox-layer';
import { Tiles3DLoader } from '@loaders.gl/3d-tiles';
import { Tile3DLayer } from '@deck.gl/geo-layers';
const buildingsLayer = new MapboxLayer({
id: 'buildings',
type: Tile3DLayer,
data: 'URL TO tileset.json',
loader: Tiles3DLoader,
loadOptions: {