Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@planet/react-globe

Package Overview
Dependencies
Maintainers
10
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planet/react-globe

A React Globe Component

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
10
Weekly downloads
 
Created
Source

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} \>

FAQs

Package last updated on 11 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc