MCPcopy Index your code
hub / github.com/google-map-react/google-map-react / convertNwSeToNeSw

Function convertNwSeToNeSw

src/lib/index.js:137–148  ·  view source on GitHub ↗
({ nw, se })

Source from the content-addressed store, hash-verified

135}
136
137export 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
150export function fitBounds({ nw, se, ne, sw }, { width, height }) {
151 let fittedData;

Callers 1

fitBoundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected