# map-tile-url

> get a map tile url from openStreetMap, bing, or google

Latest version **1.0.0** (published 2013-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install map-tile-url
pnpm add map-tile-url
yarn add map-tile-url
bun add map-tile-url
```

## 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.0 |
| Published | 2013-11-18 |
| First published | 2013-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/map-tile-url
- Repository: https://github.com/dominictarr/map-tile-url
- Issues: https://github.com/dominictarr/map-tile-url/issues
- npm.io page: https://npm.io/package/map-tile-url

## Recent versions

- 1.0.0 (latest) — 2013-11-18

## README

# map-tile-url

get a map tile url, from openstreetmap, google, or bing.

This code is pulled out of [cartegan](https://github.com/SpotterRF/cartegan)
because it is useful on it's own.

``` js
var gmt = require('get-map-tile')

var url = gmt(x, y, z)
console.log(url)

```

## providers

`gmt.openStreetMap, gmt.google, gmt.bing` are supported.
openStreetMap is the default. all have the same api

## getMapTile(x, y, z, i?)

retrive a tile. 'i' is the load balancing variable, which decides which server to request from.
you can set it manually, or leave it and it will be set randomly.

## License

MIT

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