// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import React, {Component} from 'react'; import {MAPBOX_STYLES, GITHUB_TREE} from '../constants/defaults'; import {readableInteger} from '../utils/format-utils'; import App from 'website-examples/scenegraph/app'; import {makeExample} from '../components'; class ScenegraphDemo extends Component { static title = 'Flight Tracker'; static code = `${GITHUB_TREE}/examples/website/scenegraph`; static hasDeviceTabs = true; static parameters = { sizeScale: {displayName: 'Size', type: 'range', value: 25, step: 5, min: 5, max: 500} }; static mapStyle = MAPBOX_STYLES.DARK; static renderInfo(meta) { return (

Flight data: The OpenSky Network

No. of Planes {readableInteger(meta.count || 0)}
); } render() { const {params, ...otherProps} = this.props; return ( this.props.onStateChange({count})} /> ); } } export default makeExample(ScenegraphDemo);