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

Method getCenter

src/lib/geo/index.js:103–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 getCenter() {
104 const ptRes = this.transform_.pointLocation({ x: 0, y: 0 });
105
106 return ptRes;
107 }
108
109 getBounds(margins, roundFactor) {
110 const bndT = (margins && margins[0]) || 0;

Callers 2

componentDidUpdateMethod · 0.80
GoogleMapClass · 0.80

Calls 1

pointLocationMethod · 0.80

Tested by

no test coverage detected