{"_id":"pj_robin","_rev":"5-e27d5161a9f7e49009e13f7f8aaa610e","name":"pj_robin","description":"Robinson projection library, port of PJ_robin.c from PROJ.4","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"pj_robin","version":"0.1.0","description":"Robinson projection library, port of PJ_robin.c from PROJ.4","author":{"name":"Olly Smith","email":"olly.smith@gmail.com"},"keywords":["proj","projection","robinson"],"repositories":[{"type":"git","url":"https://github.com/oesmith/PJ_robin.js.git"}],"main":"pj_robin.js","homepage":"https://github.com/oesmith/PJ_robin.js","engine":"node >= 0.4.1","_npmUser":{"name":"oesmith","email":"olly.smith@gmail.com"},"_id":"pj_robin@0.1.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"ec0a23a53df58f2b072ba89c6d20251ac045a804","tarball":"https://registry.npmjs.org/pj_robin/-/pj_robin-0.1.0.tgz","integrity":"sha512-9crv75Hv0haO1OuT6Y8F2c8Ip9Z76eM4jOY01imFVw14O7f/q+KxSCyHHlrzr96ZfvA4ezhFvnzLPZDqq27GJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi0qWLW7l0pBexdlunKzJCaOIW9/ZYr1A4KQkZlvnpkgIgVgiU5ZB4C1YA+4pwCfHUYk1tvw+QaiLOCdNbv4vuwcI="}]},"maintainers":[{"name":"oesmith","email":"olly.smith@gmail.com"}]}},"readme":"# pj_robin.js\n\nRobinson projection library - javascript port of PJ_robin.c from PROJ.4\n(v4.7.0).  Use it to make less-stretchified (but bendy around the edges)\nglobal interactive slippy maps :)\n\n## Node.js usage\n\nInstall using `npm`.\n\n    npm install pj_robin\n\nFrivolous example code:\n\n    var Robinson = require('pj_robin'),\n        pt = Robinson.project(51.507222, -0.1275);\n    console.log(\"London is at x:\"+pt.x+\" y:\"+pt.y);\n\n## Browser usage\n\nUse the minified javascript file (which can be rebuilt using the included\nMakefile).\n\n    <script src='pj_robin.min.js'></script>\n    <script>\n        var pt = Robinson.project(51.507222, -0.1275);\n        alert(\"London is at x:\"+pt.x+\" y:\"+pt.y);\n    </script>\n\n## API reference\n\n### Robinson.project(lat, lng) -> Point\n\nProject a latitude / longitude (in degrees).\n\nReturns an object with `x` and `y` properties.\n\nAside: I *think* this conversion uses a unit sphere (TODO confirm this).\n\n### Robinson.unproject(x, y) -> LatLng\n\nUnproject an x / y point.\n\nReturns an object with lat and lng properties.\n\n### Robinson.remap(pt) -> Point\n\nRe-map a projected point to 0 <= x/y < 1 range.\n\n(useful for operations on square map tiles)\n","maintainers":[{"name":"oesmith","email":"olly.smith@gmail.com"}],"time":{"modified":"2022-06-24T01:43:19.007Z","created":"2011-12-12T11:50:38.480Z","0.1.0":"2011-12-12T11:50:42.347Z"},"author":{"name":"Olly Smith","email":"olly.smith@gmail.com"}}