open-index/open-npm huggingface dataset:
npm package: @mapwhit/map-gestures
Description: Handles map touch and mouse gestures: zoom, rotate, pan etc.
Author: Damian Krzeminski
Latest version: 1.0.1

[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]

# map-gestures

Handles map touch and mouse gestures: zoom, rotate, pan etc.

## Install

```sh
$ npm install --save @mapwhit/map-gestures
```

## Usage

Map gestures handlers are applied to map after creation.

```js

import mapGestures from '@mapwhit/map-gestures';
import tilerenderer from '@mapwhit/tilerenderer';

const options = {/* relevant map options */};
const map = new tilerenderer.Map(options);
mapGestures(map, options);
```

## License

[BSD-3-Clause](License.txt) © [Damian Krzeminski](https://pirxpilot.me)

[npm-image]: https://img.shields.io/npm/v/@mapwhit/map-gestures
[npm-url]: https://npmjs.org/package/@mapwhit/map-gestures

[build-url]: https://github.com/mapwhit/map-gestures/actions/workflows/check.yaml
[build-image]: https://img.shields.io/github/actions/workflow/status/mapwhit/map-gestures/check.yaml?branch=main

[deps-image]: https://img.shields.io/librariesio/release/npm/@mapwhit/map-gestures
[deps-url]: https://libraries.io/npm/@mapwhit%2Fmap-gestures