* Get bounding box from region * * @param region Region * * @return Object Object bounding box ({ northEast: , southWest: })
(region: Region)
| 1057 | * @return Object Object bounding box ({ northEast: <LatLng>, southWest: <LatLng> }) |
| 1058 | */ |
| 1059 | boundingBoxForRegion(region: Region): BoundingBox { |
| 1060 | return { |
| 1061 | northEast: { |
| 1062 | latitude: region.latitude + region.latitudeDelta / 2, |
| 1063 | longitude: region.longitude + region.longitudeDelta / 2, |
| 1064 | }, |
| 1065 | southWest: { |
| 1066 | latitude: region.latitude - region.latitudeDelta / 2, |
| 1067 | longitude: region.longitude - region.longitudeDelta / 2, |
| 1068 | }, |
| 1069 | }; |
| 1070 | } |
| 1071 | |
| 1072 | // @ts-ignore |
| 1073 | private _getHandle() { |
nothing calls this directly
no outgoing calls
no test coverage detected