Socket
Book a DemoInstallSign in
Socket

@basemaps/tiler

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basemaps/tiler

latest
Source
npmnpm
Version
8.11.0
Version published
Weekly downloads
1
-91.67%
Maintainers
2
Weekly downloads
 
Created
Source

@basemaps/tiler

Given a collection of CogGeoTiffs, generate the composition pipeline required to create a XYZ WebMercator tile

See @basemaps/tiler-sharp for how to run the composition pipeline in NodeJs

Usage

import { Tiler } from '@basemaps/tiler';
const tiler = new Tiler(256 /* Tile size px */);
const tiffs = [tiffA, tiffB]; // @cogeotiff/core GeoTiff's
const layers = await tiler.tile(tiffs, x, y, z);
// Layers is now the positioning and scaling information for the tiffs

import { TilerMaker } from '@basemaps/tiler-sharp';
const maker = new TileMaker(256);
const data = await maker.compose(layers);
console.log(data.buffer); // PNG image of the resulting layers

FAQs

Package last updated on 13 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts