JSPM

image-map-tiles

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q34133F
  • License ISC

Node Module to create tiles from large images.

Package Exports

  • image-map-tiles

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (image-map-tiles) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ImageMapTiles

Node Module to convert large Images into tiles for use with JS map rendering libraries.

Installation

npm i image-map-tiles -S

Usage

const imageMapTiles = require('image-map-tiles');

var options = {
    'outputDir': 'path/to/output',
    'zoom': 5,
    'tileHeight': 256,
    'tileWidth': 256
}

imageMapTiles('path/to/image', options );

Implementing Tiles

https://developers.google.com/maps/documentation/javascript/examples/maptype-image