(y, worldSize)
| 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); |