{"_id":"leaflet-graticule","_rev":"1-3b67bb43c3ebe39693b3987657484e7e","name":"leaflet-graticule","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"leaflet-graticule","version":"0.0.1","description":"Lat/Lon Graticule for Leaflet map","main":"Leaflet.Graticule.js","repository":{"type":"git","url":"git+https://github.com/Leaflet/Leaflet.Graticule.git"},"author":{"name":"cloudybay"},"bugs":{"url":"https://github.com/Leaflet/Leaflet.Graticule/issues"},"homepage":"https://github.com/Leaflet/Leaflet.Graticule","gitHead":"6a3c46b8e0e3d1c9b2e6a23f94f49fc1a57e7845","_id":"leaflet-graticule@0.0.1","_npmVersion":"6.3.0","_nodeVersion":"8.11.1","_npmUser":{"name":"jywarren","email":"jeff@unterbahn.com"},"dist":{"integrity":"sha512-nyOHBwCSOtz3kbfoDkmRcHkZoe6UjNuJn62B9P31jvvN1iYQy3henF3G+CrBDZ3duDucPThzowJNg/adoo/JIA==","shasum":"44b3ed93328d6ec075723f8804dd3c4a72bb219c","tarball":"https://registry.npmjs.org/leaflet-graticule/-/leaflet-graticule-0.0.1.tgz","fileCount":9,"unpackedSize":474400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZdtJCRA9TVsSAnZWagAA2FQP/jdHI3M9klmGsICr8fe6\nqD2lRCo84BroS67k+kkvre/UCF288eFH7PkmXbXAg0bsUaptiCxPiskiAmI1\nrN7NLXSGLwARG9KfVvb+C/6XkY6EiS5y6VS6R6pPfITkkic7BZFEbA0847dn\nE52vrpTUMaxffUZoy3mPUCyOX7iOFEnGT4RN5EzBTWA7Z3pTkxPNFMJpWQGD\noDxLYNnT4l1Qk1LbX+m5PR8+JIvuTe9W87a1qiM3F97h0GYo3yrRgF9UuwRU\nV1VFOROhjFXu+N4N7n5VcdHWPuux6tmm4Vx9FOWtjC/po38kj3OVwWSjKMw1\nBrOGILhG9nig9f0it8L/tVPkvX13NHOe17z8rM4lsF3NWWl3v6SFyPVchcyl\n/Rsy6lHKaVAJnVjcfSyuM4EuX8EYige5pCTyXYLzZrciwrVXdvEZtqM4GBKI\no1rAaYvT/4eVWgDA1c4IChLFaEQEA+UD6y9ZANf88B43V5e2zXo/xvoklEL7\nn2z0Lnro/dlVZ/KbvKHwDm9XFwBWRkT9fcwyquqykkK5nZi3D8DwwcYDI9V5\nJBByhUno0poMvBmvx44VI3WQvM2zBnRqgfFmELAw7Pr3qyF4f4nclEzeFlT1\n4IZLmufnqnfUENHf643DOhNxJdCz2gvHb/jdQjmNDi1ZHyF+7uOhLDFSHogw\nCQ7a\r\n=Pt09\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhKzi37wMJ5cOikgbyxF5XTas/VeK0MHtfcdxTMFX3HQIgd2WVWv9g+UYdy0p0+JSXnjJtbLJTfkwa6cCxHBvUQvg="}]},"maintainers":[{"name":"jywarren","email":"jeff@unterbahn.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-graticule_0.0.1_1533401929133_0.23571393592435563"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-04T16:58:49.133Z","0.0.1":"2018-08-04T16:58:49.343Z","modified":"2022-05-07T18:35:07.391Z"},"maintainers":[{"name":"jywarren","email":"jeff@unterbahn.com"}],"description":"Lat/Lon Graticule for Leaflet map","homepage":"https://github.com/Leaflet/Leaflet.Graticule","repository":{"type":"git","url":"git+https://github.com/Leaflet/Leaflet.Graticule.git"},"author":{"name":"cloudybay"},"bugs":{"url":"https://github.com/Leaflet/Leaflet.Graticule/issues"},"readme":"leaflet.latlng-graticule\n===========================\n\nCreate a Canvas as ImageOverlay to draw the Lat/Lon Graticule,\nand show the grid tick label at the edges of the map.\n\nCheck out the [demo](https://leaflet.github.io/Leaflet.Graticule/example/).\n\n\n### Usage example\n\n```javascript\n    L.latlngGraticule({\n        showLabel: true,\n        zoomInterval: [\n            {start: 2, end: 3, interval: 30},\n            {start: 4, end: 4, interval: 10},\n            {start: 5, end: 7, interval: 5},\n            {start: 8, end: 10, interval: 1}\n        ]\n    }).addTo(map);\n```\n\n\n### Options\n- **showLabel**: Show the grid tick label at the edges of the map. Default `true`\n- **opacity**: Opacity of the Graticule and Label. Default `1`\n- **weight**: The width of the graticule lines. Default `0.8`\n- **color**: The color of the graticule lines. Default `#aaa`\n- **font**: Font Style for the tick label. Default `12px Verdana`\n- **fontColor**: Color of the tick label. Default `#aaa`\n- **zoomInterval**: Use different intervals in different zoom levels. You can set for both latitude and longitude lines as the example, or set different intervals for latitude and longitude like below:\n```javascript\n  zoomInterval: {\n    latitude: [\n      {start: 4, end: 6, interval: 5},\n      {start: 7, end: 20, interval: 1}\n    ],\n    longitude: [\n      {start: 4, end: 6, interval: 10},\n      {start: 7, end: 20, interval: 2}\n    ]\n  }\n```\n- ***Default***:\n```javascript\n  zoomInterval: [\n    {start: 2, end: 2, interval: 40},\n    {start: 3, end: 3, interval: 20},\n    {start: 4, end: 4, interval: 10},\n    {start: 5, end: 7, interval: 5},\n    {start: 8, end: 20, interval: 1}\n  ]\n```\n\n#### Special Options\nSome of the projections (like Lambert) is no straight line, set those options to draw a polyline graticule.\n- **lngLineCurved**: Interval of polyline. Deafult `0`\n- **latLineCurved**: Interval of polyline. Deafult `0`\n\nCheck out the [Lambert projection example](https://cloudybay.github.io/leaflet.latlng-graticule/example/lambert.html).\n","readmeFilename":"README.md"}