# pigeon-maps

> ReactJS maps without external dependencies

Latest version **0.22.1** (published 2024-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install pigeon-maps
pnpm add pigeon-maps
yarn add pigeon-maps
bun add pigeon-maps
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.22.1 |
| Published | 2024-12-26 |
| First published | 2016-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 225.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3518 |
| Author | Marius Andra |
| Maintainers | mariusandra |

## Links

- npm: https://www.npmjs.com/package/pigeon-maps
- Repository: https://github.com/mariusandra/pigeon-maps
- Homepage: https://github.com/mariusandra/pigeon-maps#readme
- Issues: https://github.com/mariusandra/pigeon-maps/issues
- npm.io page: https://npm.io/package/pigeon-maps

## Recent versions

- 0.22.1 (latest) — 2024-12-26
- 0.7.0-beta4 (beta) — 2016-12-26
- 0.22.0 — 2024-12-23
- 0.21.6 — 2024-06-12
- 0.21.5 — 2024-04-19
- 0.21.4 — 2024-03-01
- 0.21.3 — 2022-10-01
- 0.21.2 — 2022-09-18
- 0.21.1 — 2022-09-18
- 0.21.0 — 2022-03-13
- 0.20.0 — 2022-01-29
- 0.19.7 — 2021-07-03
- 0.19.6 — 2021-05-29
- 0.19.5 — 2021-03-20
- 0.19.4 — 2021-03-20
- … 73 more at https://npm.io/package/pigeon-maps/versions

## README

# Pigeon Maps - ReactJS maps without external dependencies

[![npm version](https://img.shields.io/npm/v/pigeon-maps.svg)](https://www.npmjs.com/package/pigeon-maps)
[![minified](https://badgen.net/bundlephobia/min/pigeon-maps)](https://bundlephobia.com/result?p=pigeon-maps)
[![minified + gzipped](https://badgen.net/bundlephobia/minzip/pigeon-maps)](https://bundlephobia.com/result?p=pigeon-maps)

Demo: https://pigeon-maps.js.org/ (using maps from MapTiler, OSM and Stamen)

## What is it?

Are you tired of waiting 3 seconds to parse 200kb of Google Maps JavaScript just to display a few tiles and a marker? 140kb of minified Leaflet too much?

Welcome to the club!

This project aims to provide a performance-first React-centric extendable map engine.

We're currently at:
- [![minified](https://badgen.net/bundlephobia/min/pigeon-maps)](https://bundlephobia.com/result?p=pigeon-maps)
- [![minified + gzipped](https://badgen.net/bundlephobia/minzip/pigeon-maps)](https://bundlephobia.com/result?p=pigeon-maps)

Implemented:

- Show tiles
- Arbitrary overlays (markers, etc)
- Move the map by dragging
- Move the map by touch on mobile
- Zooming with the scroll wheel
- Zooming by touch
- Fractional zooming (e.g. to level 12.2)
- Zoom without flickering (keep old tiles until new ones load)
- Smooth animated zooming
- Slide when dragging and letting go
- Event handling (clicks, etc)
- Double click and double tap zooming
- Option to block dragging with one finger and mouse wheel scrolling without holding meta key
- Enable/disable touch and mouse events as needed - you could make a 100% static server rendered react map
- Support for 100% width/height containers
- Markers
- Overlays
- Draggable Overlays
- Zoom Controls

Missing:
- Double tap and then swipe touch zooming
- Many other components

## Install

[Read the docs here!](https://pigeon-maps.js.org/docs/installation)

## Yeah, but why "pigeon"??

Pigeons are experts in [magnetoreception](https://en.wikipedia.org/wiki/magnetoreception). Good pigeons can find their way home from anywhere.

Magnets were essential in making the first maps. With a good map you can find your way home from anywhere.

Thus, `pigeon`.

Source: https://en.wikipedia.org/wiki/Homing_pigeon

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