MCPcopy Create free account
hub / github.com/google-map-react/google-map-react / yLat

Method yLat

src/lib/geo/transform.js:123–126  ·  view source on GitHub ↗
(y, worldSize)

Source from the content-addressed store, hash-verified

121 }
122
123 yLat(y, worldSize) {
124 const y2 = 180 - (y * 360) / (worldSize || this.worldSize);
125 return (360 / Math.PI) * Math.atan(Math.exp((y2 * Math.PI) / 180)) - 90;
126 }
127
128 locationPoint(latlng) {
129 const p = this.project(latlng);

Callers 1

unprojectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected