(mapCanvasProjection, offset, props)
| 69 | } |
| 70 | |
| 71 | export function getLayoutStyles(mapCanvasProjection, offset, props) { |
| 72 | if (props.bounds) { |
| 73 | const bounds = ensureOfType( |
| 74 | props.bounds, |
| 75 | google.maps.LatLngBounds, |
| 76 | createLatLngBounds |
| 77 | ) |
| 78 | return getLayoutStylesByBounds(mapCanvasProjection, offset, bounds) |
| 79 | } else { |
| 80 | const position = ensureOfType( |
| 81 | props.position, |
| 82 | google.maps.LatLng, |
| 83 | createLatLng |
| 84 | ) |
| 85 | return getLayoutStylesByPosition(mapCanvasProjection, offset, position) |
| 86 | } |
| 87 | } |
no test coverage detected