# @ffly4u/leaflet-tocoordinates

> A simple control to center map on specific coordinates to leaflet

Latest version **1.0.7** (published 2020-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ffly4u/leaflet-tocoordinates
pnpm add @ffly4u/leaflet-tocoordinates
yarn add @ffly4u/leaflet-tocoordinates
bun add @ffly4u/leaflet-tocoordinates
```

## 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.7 |
| Published | 2020-08-26 |
| First published | 2019-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sébastien Rodriguez |
| Maintainers | benjaminvadant, ffly4usupport, sebtiz13 |
| Keywords | geolocation, plugins, leaflet, gps, coordinates, map, geo |

## Links

- npm: https://www.npmjs.com/package/@ffly4u/leaflet-tocoordinates
- Repository: https://github.com/ffly4u-open-source/leaflet-toCoordinates
- Homepage: https://github.com/ffly4u-open-source/leaflet-toCoordinates#readme
- Issues: https://github.com/ffly4u-open-source/leaflet-toCoordinates/issues
- npm.io page: https://npm.io/package/@ffly4u/leaflet-tocoordinates

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.11.2

## Recent versions

- 1.0.7 (latest) — 2020-08-26
- 1.0.6 — 2020-08-17
- 1.0.5 — 2020-08-06
- 1.0.4 — 2019-12-09
- 1.0.3 — 2019-11-20
- 1.0.2 — 2019-11-20
- 1.0.1 — 2019-11-18
- 1.0.0 — 2019-11-15

## README

# leaflet-toCoordinates

A simple control to center map on specific coordinates to leaflet

## Installation

with npm:
```bash
npm install --save @ffly4u/leaflet-tocoordinates
```

or yarn:
```bash
yarn add @ffly4u/leaflet-tocoordinates
```

## Usage

```js
import L from 'leaflet';
import LeafletToCoordinates from '@ffly4u/leaflet-tocoordinates';
import '@ffly4u/leaflet-tocoordinates/dist/leaflet.css';

const control = new LeafletToCoordinates();

const map = new L.Map('map');
map.addControl(LeafletToCoordinates);
```

## Options

| Parameters | Type | Default |
|-----------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| position | String | topleft |
| style | String | button |
| retainZoomLevel | Boolean | false |
| animateZoom | Boolean | true |
| inputLabel | String | Enter GPS coordinates |
| zoomLevel | Int | 18 |
| classNames | Object | { container: 'leaflet-bar leaflet-control leaflet-control-tocoordinates', button: 'leaflet-bar-part fa fa-dot-circle-o', resetButton: 'reset', form: '', input: '' } |

## License

[MIT](https://github.com/ffly4u-open-source/leaflet-toCoordinates/blob/master/LICENSE)

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