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

@planet/react-globe

Package Overview
Dependencies
Maintainers
5
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

  • 1.6.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

React-globe

This component displays a globe, with an optional location marker and a center.

Props

The globe can be customized with the following props:

  • center: The center position of the globe. The format is [lat, lon]
  • diameter: Diameter of the image, in pixels
  • landColor: color of the land areas. Defaults to '#fff'
  • markerColor: color of the position marker. Defaults to '#18aae6'
  • oceanColor: color of the oceans. Defaults to '#666'.
  • rotationTime: Duration of animation for rotation.
  • shaded: Whether the globe is shaded, for a 3d look, or flat.
  • shadingOpacity: Opacity of the shading, if eneabled. Defaults to 1.

Animation

Changing the center position on the component will cause it to rotate into the new position.

Example

<Globe center={[37, -122]}
  diameter={80}
  landColor="#191919"
  markerColor="#009da5"
  oceanColor="#f2f2f2"
  rotationTime=1000
  shaded
  shadingOpacity={0.1}/>

FAQs

Package last updated on 16 Nov 2016

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