{"_id":"leaflet-marker-rotation","_rev":"6-8ffeef8b4ab3a443be6bf4c9abf5c39d","time":{"1.0.0":"2020-11-14T20:56:11.119Z","created":"2020-11-15T21:34:39.918Z","0.1.0":"2020-11-15T21:34:40.054Z","modified":"2022-05-07T18:37:32.913Z","0.2.0":"2021-01-22T21:01:24.148Z","0.3.0":"2021-03-26T19:56:04.764Z","0.4.0":"2021-07-07T23:27:13.526Z"},"name":"leaflet-marker-rotation","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"leaflet-marker-rotation","version":"0.1.0","description":"Leaflet plugin to enable the rotation of map marker icons","private":false,"license":"MIT","author":{"name":"Abdul Khan","email":"khan.abdul1@outlook.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/abdulk1/Leaflet.RotatedMarker.git"},"main":"src/index.js","types":"src/index.d.ts","scripts":{},"dependencies":{"@types/leaflet":"*"},"devDependencies":{},"keywords":["leaflet","marker","rotated"],"gitHead":"0f73f50d2b0e635dd3b4477dcaedb79e4c41168a","bugs":{"url":"https://github.com/abdulk1/Leaflet.RotatedMarker/issues"},"homepage":"https://github.com/abdulk1/Leaflet.RotatedMarker#readme","_id":"leaflet-marker-rotation@0.1.0","_nodeVersion":"14.15.0","_npmVersion":"7.0.8","dist":{"integrity":"sha512-cYbPdmnPjkycgA8JgrgSpHq8xiIOyCpcLcNBZzLsKezIOXIeBWtQaMLH5gZp4CakSztPpT4Tp8uRS5VBNEMIVg==","shasum":"66a21db7633883974ae904a3fe1a1fcaec6daace","tarball":"https://registry.npmjs.org/leaflet-marker-rotation/-/leaflet-marker-rotation-0.1.0.tgz","fileCount":7,"unpackedSize":8576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsZ7wCRA9TVsSAnZWagAA8qUP/RmBFqBlIxvJtqt7/4nR\nhLgiEF3XMP6NQ4EwYAYjW1M9JJRdWCcyqCpGiTQSrvRSqnaOhoQo8aUwVEp/\nRrs9YNhEIbnebkpl7B7aXAwTKF6mDTD7LB5Iv3oiWeKYUyVp4hZUf1B5WzPr\nRkknfnq882UNTW0pWQrK75ejmsWZN79Jlkqm60yOYUfRMUOohqp4znjv9XMb\n5FcRUEqMfGK7uQJeQFBPxw54PrtRXbU95i7YAdgwVcTvB7BeWPNm7KDr6OUb\nsc/bhzKVCRpayi/7kTg8nKSUyn5dO0hBfKkXI4TubxCKCt+3DoSPOrlMyevZ\nVnyZP0NIdSzM4RAE10bEsfnzGWIgzJ8SgIgD1Ool5FzX1m8WpJpwBtXP3Ov4\nAkkaDw7tiCGWFE2Kb+q0+UPnHfWo6OjA+eZtHraNb36Ht0l9h6XEnExFuV0J\nMe1ocklzIU1O+A36PF7rKxUhrIEJMESVkCDY04cQXc+hZSk0CJsFy3j+hn8+\nhGwbUGk41+ZWvxUoCDNXQonKrSYJCHdTmdQYKaXhshfHptoaOSFTs81RujZ7\n2sKfJA6WGf40fJU7WCSmcDHYsO3VcVtRonmK2qe7ElX0qz9xn9l1rs/tZftr\nq9G/62y/bxPenFKeVWhBLy0FC0JawgpgC41R5yfMI/kPrZh9BETdFabKeIbe\n7Q81\r\n=8qlk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe0luGgGd/L3aKIoP5RWSRiuHEFzsVjgTzjOUl0KW62wIhAMZ1CF75ygmql1vqQjfQjZCehzLSxrlGUP6g2He26LAz"}]},"_npmUser":{"name":"abdulk1","email":"khan.abdul1@outlook.com"},"directories":{},"maintainers":[{"name":"abdulk1","email":"khan.abdul1@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-marker-rotation_0.1.0_1605476079919_0.9292495489035948"},"_hasShrinkwrap":false},"0.2.0":{"name":"leaflet-marker-rotation","version":"0.2.0","description":"Leaflet plugin to enable the rotation of map marker icons","private":false,"license":"MIT","author":{"name":"Abdul Khan","email":"khan.abdul1@outlook.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/abdulk1/Leaflet.RotatedMarker.git"},"main":"src/index.js","types":"src/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{},"devDependencies":{"@types/leaflet":"*"},"keywords":["gis","map","leaflet","marker","rotated"],"gitHead":"4f51384305fc27de1b990fc88db39ab7266e5e9e","bugs":{"url":"https://github.com/abdulk1/Leaflet.RotatedMarker/issues"},"homepage":"https://github.com/abdulk1/Leaflet.RotatedMarker#readme","_id":"leaflet-marker-rotation@0.2.0","_nodeVersion":"14.15.0","_npmVersion":"7.0.8","dist":{"integrity":"sha512-TrKWb4NTzLb4P98JZtDdESy7A6dKPziTjJYAqHKtnLKv7rw7724WikKQEuyn4rCmhj59CZJDY+vbB9pyuTixiQ==","shasum":"4f024446060787e64b8c15444ac86a9f6c0f551e","tarball":"https://registry.npmjs.org/leaflet-marker-rotation/-/leaflet-marker-rotation-0.2.0.tgz","fileCount":7,"unpackedSize":8631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCz0kCRA9TVsSAnZWagAA4oEP/jVGG/3VWAadyw3m7xv3\nazW/H3qugasZebJcJGWopd6IKaNPaAwblqcRCutAshZ9z7CqpzGqxQ/ifiSV\nBHoRGpPqf9Jr/5uFiDszoN7Pp7zRpEInG04m+K9otLRBVhjdlN+JiA/LQ2/D\n9ySBPx4BonkOu5tcWmVZGnmUVovj3U8GZ8zXknoDSks67VJzTiYUmxMnSrQE\ntuk2GDthiB4Rw7TsYhB8Ce1siOOJwknEvCHoO15HVZmhplH+9+0WnyHCc1ic\nycfJONUiKNb7N/jHZsChrY1wYJeMB35qRrT98ydMVXF42lLFFcPLMppQJbzx\nctN1UrleRRks0ECyrcPBjVWwvgeYULYPaEMF0rVAku0atxobGUHbyv4NMk16\nV6ZHwANlYRfmtp1ewsw1OHWhuokCD4GZYqb7A8ylWDlVzT+qwmXV/9kXB+yE\nBnZBczZkhgxcTOiVYegBX2hIbjSq60/uoJPPu1id7qCxgD9ARTIG2NNYo+yO\n/Q8B2o5+YGPVR1+cF+xbRD/qvk9YisFgGAbyAzUnkVdQN8B33sr7iFbmTh07\npmJhvi9Mr2/yWgTwd+W3NLa7WLGEE2jpaZg2tOn3cQyFQn4scYLinlkNhgo4\nLkRgqY7+FBgNQw+hvDlEnmC9dScBMUM12x6/b1BOjrwAPUi7qIPXV9UBF0/5\nNSeX\r\n=96lT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPB3+ynmpqSp8907a5iTXkLQF9RhFbUrRPtHEw9J6S/AiBlKYeLFFgruabc1ZK5HTqYzIhGNcXOiZhgP+d0S/yezg=="}]},"_npmUser":{"name":"abdulk1","email":"khan.abdul1@outlook.com"},"directories":{},"maintainers":[{"name":"abdulk1","email":"khan.abdul1@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-marker-rotation_0.2.0_1611349284042_0.3842782416837953"},"_hasShrinkwrap":false},"0.3.0":{"name":"leaflet-marker-rotation","version":"0.3.0","description":"Leaflet plugin to enable the rotation of map marker icons","private":false,"license":"MIT","author":{"name":"Abdul Khan","email":"khan.abdul1@outlook.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/abdulk1/Leaflet.RotatedMarker.git"},"main":"src/index.js","types":"src/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{},"devDependencies":{"@types/leaflet":"*"},"keywords":["gis","map","leaflet","marker","rotated"],"gitHead":"64d22e7617fc3670b41ffa52796875a207ad9214","bugs":{"url":"https://github.com/abdulk1/Leaflet.RotatedMarker/issues"},"homepage":"https://github.com/abdulk1/Leaflet.RotatedMarker#readme","_id":"leaflet-marker-rotation@0.3.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-vzmwpH9jWd6Fc36Wp7eOavprE3rtG3/olu/cdPVPRe8uB6ZfdPUOClu1iirS5z5tMwkSbyduBwdAcZqxn5QT1Q==","shasum":"9541836c3f9a60e3f95329295e58e1575b3d39a0","tarball":"https://registry.npmjs.org/leaflet-marker-rotation/-/leaflet-marker-rotation-0.3.0.tgz","fileCount":7,"unpackedSize":8645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXjxVCRA9TVsSAnZWagAARJ8P/jzqnalgy+56VQmiM7FW\n4tczTun/E6ImDnV0sMetHwdVzLfw3QB0pKuDWhJT+9jGuJOQaErbOo46eJBR\nHohd4B8k4DENIM/kcXaBwfYjfQGCTgxaG46mf0mEQaEvsnJ1UJBLZhPvxCjF\neHkcJwmYE04TxrWGRnn4yljTQZtmVG9d4aFiCNc7GmA6SLCWwbfJjXroC6Zv\nq8hFXCJZQvRloqI7/HTbrsP9UdrTCtx9EA8uzTWjInzPLGH4t06Dq1BErb2I\nmnXk36cREhI4/PowsVlbcpZbt6ruKpo07DSzTOBadvbsLhftL7MXv6G9PnYU\n75UZXwAEDaYlvtDa+t7TYvCmJbsqR+smwwPvOoXXXuGx4L+4Wd+5j4CgWclI\n4yqYTILgDZmRc8Xa3aK4fy2Q11tibox6oso0FwUXGRyK/+0tcS/f3hRiwYK1\nIDkgiPA9eYcxgRnlV9E0v+y6lPCLjaHjc9xoq8j4OGhd7IlumbljLZrETr0/\nYRrPyfI2rarl+LwRFbDXDDxGVYEq0o+xLcI4mg4XReIMe23drL3MJF/rZy5a\nMLC145KF3jobUX3M9ruf/Idfn41ZkGV8kP1OKM5qdBIsLsMR+v8+jfOkbBRo\nX8lFYWGEUdUzIIrUuiEOEb4kCdOEoe1SPWe0K1tKugZoz5h/lzOB7nbP3k+2\nHxV0\r\n=vmW/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtcxjUJEtIS4+PF+pOPol2G8svXciqX7XcBD7e2gf9aAiEAk60oK+axjagvBct+0mZqZGWUN22V2GqA+n3sfSUmLN0="}]},"_npmUser":{"name":"abdulk1","email":"khan.abdul1@outlook.com"},"directories":{},"maintainers":[{"name":"abdulk1","email":"khan.abdul1@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-marker-rotation_0.3.0_1616788564631_0.23050134086353036"},"_hasShrinkwrap":false},"0.4.0":{"name":"leaflet-marker-rotation","version":"0.4.0","description":"Leaflet plugin to enable the rotation of map marker icons","private":false,"license":"MIT","author":{"name":"Abdul Khan","email":"khan.abdul1@outlook.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/abdulk1/Leaflet.RotatedMarker.git"},"main":"src/index.js","types":"src/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{},"devDependencies":{"@types/leaflet":"*"},"keywords":["gis","map","leaflet","marker","rotated"],"gitHead":"25b4673d601db4a4e632992541b86e01adfdeea2","bugs":{"url":"https://github.com/abdulk1/Leaflet.RotatedMarker/issues"},"homepage":"https://github.com/abdulk1/Leaflet.RotatedMarker#readme","_id":"leaflet-marker-rotation@0.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-7I+l/Ky3mP7LQ+nfVA+Gzjl5NOb02mph3v9SD2dPoCEQ/vV3zuZp+7Sewm2Pgk2zH9Aa4+mPqNTSSSLe3D7lmg==","shasum":"c375db65e8e8f0ef7449c5d7ffb9d96d475e41de","tarball":"https://registry.npmjs.org/leaflet-marker-rotation/-/leaflet-marker-rotation-0.4.0.tgz","fileCount":7,"unpackedSize":8067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5jhRCRA9TVsSAnZWagAAVQcQAJRdSbrcpSZyGf1dukQg\nahNfOFEyti5iscpHU90XoufhrQJ8Gq1MX4/W9bvMLDkHpQHP36K32gt47B5W\nzo57YhXyhPZUAnBwhEx3twTgp58vTSMJM3gE5TbtJxvDuzGS/ZPq8MuKYoGQ\nxhXjG+F7jOauYush0vvmCgma8ZZyTjqQLnt0iMDPrSklwA42H8D4Ia5Si4Pl\nNgP6kKv6DLDU8SWm5kNgZDfkJIM/yVEFwI7ySvmb8AYfg5GSjCikuxlvyK1G\nEFePRBc9sWh9Hq5dKIGFcws3FvTNwjo37oTlPdSV0dwtBbN99JGsQJ9LtXNn\nsevLw+l/T5ElY7hFQeDoyzJ0vC9iME/56Viu2Ft2ukzr0WMYU2lKHH3setyi\n8qN7A4UvN/HtCam4xjgSD+uqKWo34sGLgCj+DyCoxLlOeMboFZM+zpxA+1Bj\nrPnNE+fT0I/O7A3AmPPPPhJ8DM79Jx06PCLDxilv4BjAYw0kueW58rTqDMWL\nLCqjNro5Y4BaxNHRQnSNU+kM+qRH7XW+TGQaxoB4zuVtpfOMeugGSdGL0o6z\nHJzhgeAhxo387PI/TUbDM5J56fDD5+8a9ZK6a0vQas7HGDqOyj5VrPe9fT/H\nq2knxH9nWfmCJf9ctLYTYnbxoW6bL9YuDZtB+LA2mLJsjVC2CgBduwcr9NoV\nJeTU\r\n=ieVl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0LE9phyWvr0DTKyf6DUueBETzXRzpliZi7DIY5vbRbAiAZ4dTyr6yJRFaTsUh0SyERsAOlaHiMb/vMGkhBeCYfQQ=="}]},"_npmUser":{"name":"abdulk1","email":"khan.abdul1@outlook.com"},"directories":{},"maintainers":[{"name":"abdulk1","email":"khan.abdul1@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-marker-rotation_0.4.0_1625700433413_0.8287487050541771"},"_hasShrinkwrap":false}},"maintainers":[{"name":"abdulk1","email":"khan.abdul1@outlook.com"}],"description":"Leaflet plugin to enable the rotation of map marker icons","homepage":"https://github.com/abdulk1/Leaflet.RotatedMarker#readme","keywords":["gis","map","leaflet","marker","rotated"],"repository":{"type":"git","url":"git+ssh://git@github.com/abdulk1/Leaflet.RotatedMarker.git"},"author":{"name":"Abdul Khan","email":"khan.abdul1@outlook.com"},"bugs":{"url":"https://github.com/abdulk1/Leaflet.RotatedMarker/issues"},"license":"MIT","readme":"# Leaflet Rotated Marker\n\nEnables rotation of marker icons in Leaflet. [Demo](https://abdulk1.github.io/Leaflet.RotatedMarker/)\n\n[![npm version](https://badge.fury.io/js/leaflet-marker-rotation.svg)](https://www.npmjs.com/package/leaflet-marker-rotation)\n\n```bash\nnpm install leaflet-marker-rotation\n```\n\n## Usage\n\n```js\nL.rotatedMarker([48.8631169, 2.3708919], {\n  rotationAngle: 45,\n}).addTo(map);\n\nvar marker = new L.RotatedMarker([48.8631169, 2.3708919], {\n  rotationAngle: 145,\n  rotationOrigin: \"bottom center\",\n}).addTo(map);\n```\n\n## API\n\nIt extends the `L.Marker` class with two new options:\n\n| Option               | Type     | Default           | Description                                                                                                                 |\n| -------------------- | -------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------- |\n| **`rotationAngle`**  | `Number` | 0                 | Rotation angle, in degrees, clockwise.                                                                                      |\n| **`rotationOrigin`** | `String` | `'bottom center'` | The rotation center, as a [`transform-origin`](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin) CSS rule. |\n\nand two new methods:\n\n| Method                             | Returns | Description                     |\n| ---------------------------------- | ------- | ------------------------------- |\n| **`setRotationAngle(newAngle)`**   | `this`  | Sets the rotation angle value.  |\n| **`setRotationOrigin(newOrigin)`** | `this`  | Sets the rotation origin value. |\n\nThe default `rotationOrigin` value will rotate around the bottom center point, corresponding to the \"tip\" of the marker for most commonly used icons. If your marker icon has no tip, or you want to rotate around its center, use `center center`.\n\n## Note\n\nIt doesn't rotate marker icon shadows. There is no way to make it look good with the perspective of classic, pin type shadows.\n\nIt's advised to disable icon shadows, or use simple ones which will work for all marker angles.\n","readmeFilename":"README.md"}