0.0.4 • Published 7 months ago
@types/leaflet.utm v0.0.4
Installation
npm install --save @types/leaflet.utm
Summary
This package contains type definitions for Leaflet.UTM (https://github.com/jjimenezshaw/Leaflet.UTM).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.utm.
index.d.ts
// Type definitions for Leaflet.UTM 0.0
// Project: https://github.com/jjimenezshaw/Leaflet.UTM
// Definitions by: Andrew Lineyschikov <https://github.com/Elcaten>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as L from 'leaflet';
declare module 'leaflet' {
function utm(params: { x: number; y: number; zone: number; band: string; southHemi: boolean }): Utm;
namespace Utm {
interface ToStringOptions {
/** Number of decimals for x and y. Default 1. */
decimals?: number | undefined;
/**
* String defining the format to use.
* Default `{x}{sep} {y}{sep} {zone}{band}{sep} {datum}`, where:
* `{x}: easting`
* `{y}: northing`
* `{zone}: UTM zone, value between 1 and 60`
* `{band}: Band letter, between C and X`
* `{datum}: WGS84`
* `{hemi}: Hemisphere, north or south`
* `{sep}: separator`
*/
format?: string | undefined;
/** Separator used in the format. Default ','. */
sep?: string | undefined;
/** String used in the format for field {hemi} in the north hemisphere. Default 'North'. */
north?: string | undefined;
/** String used in the format for field {hemi} in the south hemisphere. Default 'South'. */
south?: string | undefined;
}
function setDefaultOptions(
params:
| ToStringOptions
| ((opts: ToStringOptions, defaultOpts: ToStringOptions) => ToStringOptions)
| null
): void;
}
class Utm {
private constructor();
x: number;
y: number;
zone: number;
band: string;
southHemi: boolean;
toString(options?: Utm.ToStringOptions): string;
latLng(noException?: boolean): LatLng;
normalize(): LatLng;
equals(other: Utm): boolean;
clone(): Utm;
}
interface LatLng {
utm(zone?: number, southHemi?: boolean): Utm;
}
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:39 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by Andrew Lineyschikov.