{"id":13568079,"url":"https://github.com/adeweb-be/volto-leaflet-block","last_synced_at":"2025-05-12T19:14:25.637Z","repository":{"id":57094633,"uuid":"400828412","full_name":"adeweb-be/volto-leaflet-block","owner":"adeweb-be","description":"Adds a new map block based on Leaflet and React Leaflet","archived":false,"fork":false,"pushed_at":"2023-04-02T16:40:34.000Z","size":37,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-29T03:07:15.582Z","etag":null,"topics":["plone","volto","volto-addon","volto-block"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adeweb-be.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-28T15:37:20.000Z","updated_at":"2023-05-17T20:36:39.000Z","dependencies_parsed_at":"2024-06-07T06:51:33.918Z","dependency_job_id":"2f93d395-c842-443a-a804-8552beca79e9","html_url":"https://github.com/adeweb-be/volto-leaflet-block","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeweb-be%2Fvolto-leaflet-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeweb-be%2Fvolto-leaflet-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeweb-be%2Fvolto-leaflet-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeweb-be%2Fvolto-leaflet-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adeweb-be","download_url":"https://codeload.github.com/adeweb-be/volto-leaflet-block/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253350006,"owners_count":21894816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plone","volto","volto-addon","volto-block"],"created_at":"2024-08-01T14:00:19.718Z","updated_at":"2025-05-12T19:14:25.620Z","avatar_url":"https://github.com/adeweb-be.png","language":"JavaScript","funding_links":[],"categories":["Add-ons"],"sub_categories":[],"readme":"# Volto Leaflet Block\n\n![screenshot](https://user-images.githubusercontent.com/9050997/131230905-9c5fe07c-834b-4e88-a031-387ee8d59b6e.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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadeweb-be%2Fvolto-leaflet-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadeweb-be%2Fvolto-leaflet-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadeweb-be%2Fvolto-leaflet-block/lists"}