open-index/open-npm huggingface dataset:
npm package: @s0kil/tiny-map
Description: A tiny script for displaying a static map with tiles
Author: Mstislav Zhivodkov
Latest version: 0.1.1

# TinyMap

A tiny script for displaying a static map with tiles.

![npm (scoped)](https://img.shields.io/npm/v/@s0kil/tiny-map?style=for-the-badge)
![npm bundle size](https://img.shields.io/bundlephobia/min/@s0kil/tiny-map?style=for-the-badge)

## Install

`npm i -D @s0kil/tiny-map`

## Usage

```javascript
import tinyMap from "@s0kil/tiny-map";
```

#### OR

```html
<script src="https://cdn.jsdelivr.net/npm/@s0kil/tiny-map/index.min.js"></script>
```

#### Then

```javascript
tinyMap(document.getElementById("map"), {
  center: [82.897440725094, 54.980156831455],
  zoom: 17,
  tileUrl: "https://tile{s}.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1&size=64",
  subdomains: "0123"
});
```