2.0.2 • Published 6 years ago

@planet/react-globe v2.0.2

Weekly downloads
168
License
Apache-2.0
Repository
github
Last release
6 years ago

React Globe

This component displays a globe with a location marker.

Props

The globe can be customized with the following props:

  • center - The center position of the globe (in [lon, lat]). Defaults to [0, 0].
  • diameter - Diameter of the globe (in pixels). Defaults to 60.
  • landColor - Color of the land areas. Defaults to '#191919'.
  • markerColor - Color of the position marker. Defaults to '#009da5'.
  • markerRadius - Angular radius of the circular marker (in degrees). Defaults to '6'.
  • oceanColor - Color of the oceans. Defaults to '#f2f2f2'.
  • rotationTime - Duration of animation for rotation (in milliseconds). Defaults to 1000.

Example

<Globe center={[-122, 37]} diameter={80} \>
2.0.2

6 years ago

2.0.1

8 years ago

2.0.0

8 years ago

2.0.0-beta.2

8 years ago

2.0.0-beta.1

8 years ago

1.8.0

8 years ago

1.7.2

8 years ago

1.7.1

8 years ago

1.7.0

9 years ago

1.7.0-beta.1

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.4.0-beta.4

9 years ago

1.4.0-beta.3

9 years ago

1.4.0-beta.2

9 years ago

1.4.0-beta.1

9 years ago

1.3.0

9 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.0.3-beta.2

10 years ago

0.0.3-beta.1

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago