({ nw, se })
| 135 | } |
| 136 | |
| 137 | export function convertNwSeToNeSw({ nw, se }) { |
| 138 | return { |
| 139 | ne: { |
| 140 | lat: nw.lat, |
| 141 | lng: se.lng, |
| 142 | }, |
| 143 | sw: { |
| 144 | lat: se.lat, |
| 145 | lng: nw.lng, |
| 146 | }, |
| 147 | }; |
| 148 | } |
| 149 | |
| 150 | export function fitBounds({ nw, se, ne, sw }, { width, height }) { |
| 151 | let fittedData; |