WorldWindEarth / worldwind-react-globe

A React component for interacting with the Web WorldWind virtual globe SDK from NASA and ESA
https://worldwind.earth/worldwind-react-globe/
MIT License
44 stars 19 forks source link

Add backgroundColor property to Globe #4

Closed emxsys closed 6 years ago

emxsys commented 6 years ago

Add a backgroundColor property to the Globe so the background color can be set by the application. E.g.:

import React, { Component } from 'react'
import Globe from 'worldwind-react-globe'

class App extends Component {
    render () {
        return (
            <div>
                <Globe backgroundColor='rgb(36,74,101)' />
            </div>
        )
    }
}
emxsys commented 6 years ago

Example:


render() {
    return (
        <div>
            <Globe backgroundColor={'rgb(10,20,30)'} />
        </div>
    )
  }