export default class MapBound { public _map: L.Map; public south: number; public north: number; public east: number; public west: number; constructor(map: L.Map, north: number, east: number, south: number, west: number) { this._map = map; this.north = north * Math.PI / 180; this.east = east * Math.PI / 180; this.south = south * Math.PI / 180; this.west = west * Math.PI / 180; } get width(): number { return (720 + this.east - this.west) % 360; } get height(): number { return (360 + this.north - this.south) % 180; } get map(): L.Map { return this._map; } }