UNPKG

static-map-generator

Version:

Node.js library for generating static map images using OpenStreetMap tiles with markers, paths, and smart bounds fitting

25 lines 687 B
import { Coordinate, StaticMapOptions } from './types'; export declare class StaticMap { private options; private canvas; private ctx; private tileSize; constructor(options: StaticMapOptions); private deg2rad; private rad2deg; private latLngToTile; private tileToLatLng; private fetchTile; private latLngToPixel; render(): Promise<Buffer>; private drawMarkers; private drawMarker; private drawPaths; private drawPath; private calculateOptimalViewport; private latLngToPixelAtZoom; getCalculatedCenter(): Coordinate; getCalculatedZoom(): number; } export * from './types'; //# sourceMappingURL=index.d.ts.map