// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import React, {Component} from 'react'; import {MAPBOX_STYLES, DATA_URI, GITHUB_TREE} from '../constants/defaults'; import {readableInteger} from '../utils/format-utils'; import App from 'website-examples/text/app'; import {makeExample} from '../components'; class TextDemo extends Component { static hasDeviceTabs = true; static title = 'World Cities by Population'; static data = { url: `${DATA_URI}/geonames.txt`, worker: '/workers/geonames-decoder.js' }; static code = `${GITHUB_TREE}/examples/website/text`; static parameters = { noOverlap: {displayName: 'Prevent overlap', type: 'checkbox', value: true}, fontSize: {displayName: 'Font Size', type: 'range', value: 32, step: 1, min: 20, max: 80} }; static mapStyle = MAPBOX_STYLES.DARK; static renderInfo(meta) { return (
World cities with population more than 1000
Data source: GeoNames