1.1.1 • Published 7 years ago

react-world-point v1.1.1

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
7 years ago

React World Point

A React component that shows a point on a world map.

npm install --save react-world-point
// Tokyo, Japan.
<WorldMap lat={35.68} lon={139.68} mapWidth={600} mapHeight={500} />

Location of Tokyo

Usage

const {WorldMap} = require('react-world-point');
<WorldMap lat={lat} lon={lon} mapWidth={mapWidth} mapHeight={mapHeight} />
  • lat: Decimal latitude of the point to be shown on the world map.
  • lon: Decimal longitude of the point to be shown on the world map.
  • mapWidth: Width of the world map in pixels.
  • mapHeight: Height of the world map in pixels.

Development

To build:

npm install
npm run build

The resulting files will be in the _build/ directory.

License

This project is distributed under the BSD 3-Clause License (see LICENSE). This project uses third-party libraries that are licensed under their own terms (see LICENSE-3RD-PARTY).