{"_id":"leaflet-control-boxzoom","_rev":"1-13a76894ade72e3f8142a76502f4e790","name":"leaflet-control-boxzoom","dist-tags":{"latest":"1.5.0"},"versions":{"1.5.0":{"name":"leaflet-control-boxzoom","version":"1.5.0","description":"A Leaflet control to do a box zoom","main":"dist/leaflet-control-boxzoom.js","types":"dist/leaflet-control-boxzoom.d.ts","repository":{"type":"git","url":"git+https://github.com/gregallensworth/L.Control.BoxZoom.git"},"author":{"name":"gregallensworth"},"license":"MIT","bugs":{"url":"https://github.com/gregallensworth/L.Control.BoxZoom/issues"},"homepage":"https://github.com/gregallensworth/L.Control.BoxZoom#readme","gitHead":"f12136b1fd5b35355e2da6529256f8f778dd8fc1","_id":"leaflet-control-boxzoom@1.5.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HF2MHQvJrOa29nKKgXbrH4FL9/HFlx8Cz1p4RnptGlR2a+OCOyWdJMWY7gJJfXPp9WXcMs2QSVqFAePyc27mhQ==","shasum":"2fb9a6274b523834ca0a4a20cd08b1af99e769d5","tarball":"https://registry.npmjs.org/leaflet-control-boxzoom/-/leaflet-control-boxzoom-1.5.0.tgz","fileCount":9,"unpackedSize":27873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPga8CRA9TVsSAnZWagAAUcoP/R9gUWzzUe7bidFliu0w\noz/84zqV7tuikutB6fatonYzRRLjmJrbydfZGRHZFGNZbS+q9AvgnVaqjSl9\nRfMJ6/WsgsRGyeGTSb9/rFO4/vm1QagpSaa/OIrbjZJ616up7UGNj7rjZrIm\naVCmzvDQ5aCBGKOU0SghIu5BFHKxbwBnLHTNGoa6AdLZJyrXV549yM6N9MKI\nU1+zm9o1uBiYFvaNrfsFP13LbGsSXgULhV9qISznWR7goCnzP94ymyiOOhvd\nUuBdeuW1k1471kQJgtS+NCx42To/+egdwmkNBwlbzqou2K8Y831JgA4kc+2d\nEWcMMvJvYRoPKKisKYUFFniCmPVMnUJ/67cfY1MRZb1UD3sNiOOtkYcZOpLV\nNggQA03sMlesTsIEdf+kj8rOYwB4Ol5ULXbWRbDXROnhkGXYtWF66hHKbKFQ\nFpT0aPETzYHXuprBlw6uxtL1nXcCuUrYryqC0FlvEJJliFJV2TS4I0BNRNyt\nO1DeatUnRcBydTtUizxkC4RPoV7+9YB2G40G1w9ReYvhRge2T0GMbXzqntkr\nno/CDWrmpsBVuK+3oJMfRz4s6zRK50usqjUCoPTm0J7RuBes1cms2WLlykOz\n54OVvfiL+Lw6SBYWBUcrxE0W1+VtnQ1lyD1ZgLWDHg+moqkj1JZSXBJlLQD2\n5nMH\r\n=3Qt4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqDG/v4YSwV1m69TLHqmwJxVK5e6VflpWLu2RXxCauygIgd6Rg5YubVHzx7hgS5id21ssEZKgnqAFcJn1F8n2usq0="}]},"_npmUser":{"name":"vthib","email":"vthiberville@gmail.com"},"directories":{},"maintainers":[{"name":"vthib","email":"vthiberville@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-control-boxzoom_1.5.0_1614677692180_0.39968789709937735"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-02T09:34:52.180Z","1.5.0":"2021-03-02T09:34:52.341Z","modified":"2022-05-07T18:31:08.822Z"},"maintainers":[{"name":"vthib","email":"vthiberville@gmail.com"}],"description":"A Leaflet control to do a box zoom","homepage":"https://github.com/gregallensworth/L.Control.BoxZoom#readme","repository":{"type":"git","url":"git+https://github.com/gregallensworth/L.Control.BoxZoom.git"},"author":{"name":"gregallensworth"},"bugs":{"url":"https://github.com/gregallensworth/L.Control.BoxZoom/issues"},"license":"MIT","readme":"# L.Control.BoxZoom\n\nA Leaflet control to do a box zoom. Not everyone knows about holding down Shift, and prefer to have a visible, clickable button to do box zooms.\n\nBeyond that, this control also supports improvements over the stock box zoom behavior:\n* ability to force an aspect ratio for the drawn zoom-box\n\n\n# Installation and Example\n\n## Super Quick\n\nFor the impatient, you can copy-paste from the live demo at http://gregallensworth.github.io/L.Control.BoxZoom/\n\n## More Detailed\n\nThe _dist/_  folder contains the essentials: a JS file, a CSS file, and a single SVG icon.\n\nSimply include the JS and CSS as usual:\n\n    <script src=\"dist/leaflet-control-boxzoom.js\"></script>\n    <link rel=\"stylesheet\" href=\"dist/leaflet-control-boxzoom.css\" />\n\nThen add the Control to your map:\n\n    L.Control.boxzoom({ position:'topleft' }).addTo(map);\n\nContructor Options are as follows:\n\n* **enableShiftDrag** Enable the original functionality of Leaflet's shift-drag box zoom, in addition to the button. Defaults to `false` to disable Leaflet's shift-draw behavior, so the button must be used.\n* **keepOn** Boolean. Controls whether the zoombox button will remain active after zooming. Defaults to `false` (after zoom, turn off).\n* **aspectRatio** Number of fraction. Force the box to the given width-to-height aspect ratio. Easiest if you express it as a fraction e.g. `aspectRatio: 8/7` Defaults to `null` so no aspect ratio will be enforced and any box may be drawn.\n* **title** A tooltip when the user hovers their mouse over the control.\n* **position** Any of the usual _position_ flags for a L.Control subclass: *topright*, *topleft*, and so on.\n* **divClasses** Add classes to the div that holds the Leaflet control.\n* **iconClasses** Any valid classes for an icon element. Used for easily adding a custom icon to the button.\n","readmeFilename":"README.md"}