# react-leaflet-greatcircle

> Leaflet.greatCircle for react-leaflet

Latest version **1.0.2** (published 2019-04-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-leaflet-greatcircle
pnpm add react-leaflet-greatcircle
yarn add react-leaflet-greatcircle
bun add react-leaflet-greatcircle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-04-10 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 47.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Basile Bruneau |
| Maintainers | ntag |

## Links

- npm: https://www.npmjs.com/package/react-leaflet-greatcircle
- Repository: https://github.com/NTag/react-leaflet-greatcircle
- Homepage: https://github.com/NTag/react-leaflet-greatcircle#readme
- Issues: https://github.com/NTag/react-leaflet-greatcircle/issues
- npm.io page: https://npm.io/package/react-leaflet-greatcircle

## Recent versions

- 1.0.2 (latest) — 2019-04-10
- 1.0.1 — 2019-04-10
- 1.0.0 — 2019-04-10

## README

# react-leaflet-greatcircle

## Installation
It requires React, Leaflet and react-leaflet to be installed.

```
npm install react-leaflet-greatcircle
```

## Usage
```js
import React from 'react';
import { Map, TileLayer } from 'react-leaflet';

import GreatCircle from 'react-leaflet-greatcircle';

const position = [51.505, -0.09];

export default () => (
  <Map center={position} zoom={1} style={{ height: 300, width: 800 }}>
    <TileLayer
      attribution='&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
      url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
    />
    <GreatCircle
      center={position}
      radius={100000} /* In meters */
      fill={false}
      /* You can pass all classic properties of Circle */
    />
  </Map>
);
```

---
_Source: https://npm.io/package/react-leaflet-greatcircle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
