UNPKG

leaflet-topography

Version:

a set of tools for calculating and visualizing topography in leafletjs

50 lines (40 loc) 1.06 kB
import * as L from 'leaflet'; import { ConfigOptions, TopoLayerOptions } from './types'; declare module 'leaflet' { export namespace Topography { export function getTopography( latlng: L.LatLng, userOptions?: Partial<ConfigOptions> ): Promise<{ elevation: any; slope: number; aspect: number; resolution: number; }>; export function configure( userConfig: Partial<ConfigOptions> ): ConfigOptions; export function preload( bounds: L.LatLngBounds[], userOptions?: any ): Promise<void>; export class TopoLayer extends L.GridLayer { constructor(options: TopoLayerOptions); } export const _config: ConfigOptions; export const _tileCache: {}; } } declare const getTopography: typeof L.Topography.getTopography; declare const configure: typeof L.Topography.configure; declare const preload: typeof L.Topography.preload; declare const TopoLayer: typeof L.Topography.TopoLayer; export { getTopography, configure, preload, TopoLayer, ConfigOptions, TopoLayerOptions, }; export default L.Topography;