MCPcopy Create free account
hub / github.com/tomchentw/react-google-maps / getLayoutStyles

Function getLayoutStyles

lib/utils/OverlayViewHelper.js:89–105  ·  view source on GitHub ↗
(mapCanvasProjection, offset, props)

Source from the content-addressed store, hash-verified

87}
88
89function getLayoutStyles(mapCanvasProjection, offset, props) {
90 if (props.bounds) {
91 var bounds = ensureOfType(
92 props.bounds,
93 google.maps.LatLngBounds,
94 createLatLngBounds
95 )
96 return getLayoutStylesByBounds(mapCanvasProjection, offset, bounds)
97 } else {
98 var position = ensureOfType(
99 props.position,
100 google.maps.LatLng,
101 createLatLng
102 )
103 return getLayoutStylesByPosition(mapCanvasProjection, offset, position)
104 }
105}

Callers

nothing calls this directly

Calls 3

ensureOfTypeFunction · 0.70
getLayoutStylesByBoundsFunction · 0.70

Tested by

no test coverage detected