@dossierhq/leaflet
Version:
A library for rendering maps in Dossier with Leaflet.
21 lines (20 loc) • 649 B
TypeScript
import type { LatLngBoundsLiteral } from 'leaflet';
/** Geographic location using EPSG:4326/WGS 84 */
export interface Location {
/** South/north -90°/90° */
lat: number;
/** West/east -180°/180° */
lng: number;
}
/** Geographic bounding box using EPSG:4326/WGS 84 */
export interface BoundingBox {
/** South/north -90°/90° */
minLat: number;
/** South/north -90°/90° */
maxLat: number;
/** West/east -180°/180° */
minLng: number;
/** West/east -180°/180° */
maxLng: number;
}
export declare function toLatLngLiteral({ minLat, maxLat, minLng, maxLng, }: BoundingBox): LatLngBoundsLiteral;