{"_id":"@adeweb-be/volto-leaflet-block","_rev":"1-7fc6b5df1f4d55a26afe94fd4ffeb6fa","name":"@adeweb-be/volto-leaflet-block","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@adeweb-be/volto-leaflet-block","version":"0.2.0","description":"volto-leaflet-block: A Leaflet block for Volto","homepage":"https://github.com/adeweb-be/volto-leaflet-block","private":false,"main":"src/index.js","license":"MIT","publishConfig":{"access":"public"},"keywords":["volto-addon","volto","plone","react"],"dependencies":{"@plone/volto":">=12.1.2","@monsonjeremy/react-leaflet":"3.2.2","@monsonjeremy/react-leaflet-core":"1.1.1","leaflet":"^1.7.1"},"devDependencies":{"release-it":"^14.11.5","prettier":"^2.3.2"},"scripts":{"i18n":"NODE_ENV=production node src/i18n.js","release":"release-it"},"gitHead":"8db659099cd73cbdd353dae9239536350b6bf097","_id":"@adeweb-be/volto-leaflet-block@0.2.0","_nodeVersion":"14.15.1","_npmVersion":"7.21.0","dist":{"integrity":"sha512-5c6elLo93DuQWImW4Xvldqjownkioir0N2vCIK5fMpAVVnAILCAiOGMSqdsgyZVYbNMDo17/QZx4imKbPlwcwQ==","shasum":"8d8162e0d8d94d0458f8c1ef6955a2236b911287","tarball":"https://registry.npmjs.org/@adeweb-be/volto-leaflet-block/-/volto-leaflet-block-0.2.0.tgz","fileCount":37,"unpackedSize":49991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKpe/CRA9TVsSAnZWagAAWdEP/1YLs3jf82I0ZM+Y3Efr\nWq35IYSBcq84CnruLXaj8uwPrR0eoyS9dt5SVfdN3Oisi1t+ci/vDysVfZ8z\nBp8yIUKEZsGRmcSUzg3WipyLJhp2HlmrDqJoEjMkeBeeR69l250x1dwBZKp8\npabUvk9snb9K3ctg25eh9fiH1pdRmA8bLHUIQd2BkQpLB5RZGjl4/wyhy8o2\ndQM/jC/m4CWCCqWeMOHXkFNkoIFRoyktnEOB/bbJh4NaYcQPR7adwg4d91RZ\nxjnS9yTWD3EsAhPCTtIj3YT3goA84F2CJ5Nw2/0BdapPxscnWkkgsAepMD6R\npsuABOiAecvtAANF1Mmr5M5w3DGdj2RMBLgR9Mvqqitg+/s9mB6Qrm3Qq4U/\n3nSlIgqOu/jnv7YUz5etLCl2c3uD4IcDmeCmr5MlYIpcRtoxPgTjCm3GHsXd\nfHpmruXEC6wk3FfQLG3HVy8LMJdSGtoDHUX7iBNUdVwzygw/q2+0tsiSHh7x\nw4zn4SBBgBn+erD3gJ331MiAUa/o70yyIR7pX0sy2LPZC58uHunR7GhhEQZB\nwmaIHVHrKa8X0t9HJFzWK4Bb7YzNfiP8BQnP7Hj52lhy73K/Czen8PDpaI4T\nEkM1WneF4S62Cxs+LsRDRWi7gxIDAAZAB+kgDeYYCcnIKMilrVsBctrKYZAi\nerCF\r\n=AIpL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHjO3zb/Ecw8d3r5nt7dhXPDtJeAVty3WaPn15FunOQBAiEAu88IZISsqXuu4bRn9bA8521a93kf4lDWxYIktz1h53g="}]},"_npmUser":{"name":"duchenean","email":"antoine14duchene@gmail.com"},"directories":{},"maintainers":[{"name":"duchenean","email":"antoine14duchene@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/volto-leaflet-block_0.2.0_1630181310670_0.8442560887094428"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-28T20:08:30.619Z","0.2.0":"2021-08-28T20:08:31.030Z","modified":"2022-04-04T11:29:03.622Z"},"maintainers":[{"name":"duchenean","email":"antoine14duchene@gmail.com"}],"description":"volto-leaflet-block: A Leaflet block for Volto","homepage":"https://github.com/adeweb-be/volto-leaflet-block","keywords":["volto-addon","volto","plone","react"],"license":"MIT","readme":"# Volto Leaflet Block\n\n![screenshot](https://user-images.githubusercontent.com/9050997/131229104-b4e37d7a-199d-4690-b043-e5c8f8738bde.png)\n\n## Overview\n\nThis package adds a new map block based on [Leaflet](https://github.com/Leaflet/Leaflet) and [React Leaflet](https://github.com/PaulLeCam/react-leaflet).\n\n## Features\n\n- Display a Leaflet map as a block\n- Set the map default center (based on latitude and longitude) and zoom\n- Add some markers on the map\n\n## Profiles\nIn your `package.json` file: \n### Minimal\n```JSON\n\"addons\": [\n\"@adeweb-be/volto-leaflet-block:minimal\"\n],\n```\nThis will install the minimum config for this addon.\n\n### Base\n```JSON\n\"addons\": [\n\"@adeweb-be/volto-leaflet-block\"\n],\n```\nThis will install the minimum config + some preset markers.\n\n## Roadmap\n\n- Add Cypress tests\n- Better coordinates widget (it's a bit clunky for now)\n- Change map tiles source on the edit view\n- More preset icons\n- Better icon select widget (it's fine for a few icons but if you have hundred of them it's a mess)\n- Draw path on the map (maybe, it seems difficult)\n\n\n## Known issues\n### Improper dependency for [React Leaflet](https://github.com/PaulLeCam/react-leaflet)\n \nCurrently, react-leaflet v3.x doesn't support Webpack v4, so we depend on [@monsonjeremy/react-leaflet](https://www.npmjs.com/package/@monsonjeremy/react-leaflet) \nwhich is compatible with Webpack v4. \n\nSee here : https://github.com/PaulLeCam/react-leaflet/pull/885\n\nWhen this gets merged (hopefully) we'll use the correct package.\n\n## Translations\n\nThis addon has been translated into\n\n- English\n- French\n\n## Install\n\nIf you already have a Volto project, just update `package.json`:\n\n```JSON\n\"addons\": [\n    \"@adeweb-be/volto-leaflet-block\"\n],\n\n\"dependencies\": {\n    \"@adeweb-be/volto-leaflet-block\": \"*\"\n}\n```\n\nInstall new add-on and restart Volto:\n\n```shell\nyarn install\nyarn start\n```\n\nGo to http://localhost:3000\n\n## Demo\n\n\nhttps://user-images.githubusercontent.com/9050997/131229005-6a6fab3f-5ce9-4e0a-8ebd-a1a6b054aa19.mp4\n\n","readmeFilename":"README.md"}