This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Algorithm from http://jkwiens.com/2009/01/23/miller-projection/ | |
| function getMYLat(lat) { | |
| return 1.25 * Math.log(Math.tan(0.25 * Math.PI + 0.4 * lat)); | |
| } | |
| function convertLatLngToXYMillerProjection(lat, lng, leftLongDegree, rightLongDegree, topLatDegree, bottomLatDegree, imageWidth, imageHeight) { | |
| //Convert degree to radian | |
| var leftLong = leftLongDegree * Math.PI / 180, | |
| rightLong = rightLongDegree * Math.PI / 180, |