mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
312 B
TypeScript
17 lines
312 B
TypeScript
import * as L from 'leaflet';
|
|
import 'leaflet.utm';
|
|
|
|
L.Utm.setDefaultOptions(null);
|
|
const latLng = L.latLng(43.24209, 76.87743);
|
|
const utm = latLng.utm();
|
|
utm.toString({
|
|
decimals: 1,
|
|
format: '{x}',
|
|
sep: '-',
|
|
north: 'N',
|
|
south: 'S',
|
|
});
|
|
utm.latLng();
|
|
utm.normalize();
|
|
utm.equals(utm.clone());
|