# geo-tiles

> Zoomable Geo Tiles

Latest version **0.2.6** (published 2016-08-16) · 0 weekly downloads

## Install

```sh
npm install geo-tiles
pnpm add geo-tiles
yarn add geo-tiles
bun add geo-tiles
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2016-08-16 |
| First published | 2015-11-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ilya Boyandin |
| Maintainers | ilyabo |

## Links

- npm: https://www.npmjs.com/package/geo-tiles
- Repository: https://github.com/ilyabo/geo-tiles
- Homepage: https://github.com/ilyabo/geo-tiles#readme
- Issues: https://github.com/ilyabo/geo-tiles/issues
- npm.io page: https://npm.io/package/geo-tiles

## Recent versions

- 0.2.6 (latest) — 2016-08-16
- 0.2.2 — 2016-03-07
- 0.2.1 — 2015-12-15
- 0.2.0 — 2015-12-15
- 0.1.0 — 2015-11-24

## README

# Zoomable Geo Tiles

This is based on Mike Bostock's [geo tile plugin](https://github.com/d3/d3-plugins/tree/master/geo/tile),
and provides some additional features like spiral tiles ordering and tile coord conversion functions.  


A D3 layout for determining which 256x256 quadtree tiles to display in a rectangular viewport,
based on a scale and translate. This layout can be used to create a simple slippy map, or
render standard map tiles (e.g., MapBox, CloudMade) as a base layer behind a geographic projection. 

# Example usage

    var tiler = geoTiles()
      .size([200, 200])
      .scale(100000)
      .translate([0, 0]);
  
    var tiles = tiler();
    test.deepEqual(
      tiles,
      [
        [ 255, 255, 9 ],
        [ 256, 255, 9 ],
        [ 257, 255, 9 ],
        [ 255, 256, 9 ],
        [ 256, 256, 9 ],
        [ 257, 256, 9 ],
        [ 255, 257, 9 ],
        [ 256, 257, 9 ],
        [ 257, 257, 9 ]
      ]
    );


# More Examples

* [Panning & Zooming](http://bl.ocks.org/mbostock/4132797)
* [Clipping](http://bl.ocks.org/mbostock/4150951)
* [Vector Tiles](http://bl.ocks.org/mbostock/5593150)
* [Raster Tiles & Vector Overlay](http://bl.ocks.org/mbostock/5342063)

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