tiles-provider
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

tiles-provider

Simple js library to provide raster tiles image from different predefined sources. The advantage of this library is that you only needs coordinates and zoom level to get the image. tiles-provider return only the url to get data by default.

Features

  • 🗺️ Support multiple layer styles (for the moment 4)
  • ⚡ Support CDN with subdomains (used for balancing loads)
  • 💰 Support sources that needs a key (like Mapbox)

Sources

Multiple sources are available:

Usage

import { getRasterTile } from "tiles-provider"

const tile = getRasterTile("stamen-watercolor", { x: 0, y: 0, z: 0 })
// "http://tile.stamen.com/watercolor/0/0/0.jpg"

Alternatives

/tiles-provider/

    Package Sidebar

    Install

    npm i tiles-provider

    Weekly Downloads

    0

    Version

    1.5.0

    License

    MIT

    Unpacked Size

    9.68 kB

    Total Files

    5

    Last publish

    Collaborators

    • matteogauthier