{"id":20178334,"url":"https://github.com/johnimril/leaflet-route","last_synced_at":"2026-05-29T13:31:38.406Z","repository":{"id":248609559,"uuid":"829187080","full_name":"JohnImril/leaflet-route","owner":"JohnImril","description":"А React application that demonstrates the use of the Leaflet library to display moving markers (trucks) on a map with routes. Routes are generated randomly. This project demonstrates how to integrate react, leaflet, react-leaflet  and react-leaflet-hotline.","archived":false,"fork":false,"pushed_at":"2024-07-16T11:18:51.000Z","size":1523,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T05:29:48.049Z","etag":null,"topics":["leaflet","react-leaflet","react-leaflet-hotline","typescript"],"latest_commit_sha":null,"homepage":"https://johnimril.github.io/leaflet-route/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohnImril.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-16T00:01:15.000Z","updated_at":"2024-12-04T11:48:46.000Z","dependencies_parsed_at":"2025-01-13T16:44:40.035Z","dependency_job_id":"92e42998-8a63-46d7-b9e3-ee6ed4699866","html_url":"https://github.com/JohnImril/leaflet-route","commit_stats":null,"previous_names":["johnimril/leaflet-route"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JohnImril/leaflet-route","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnImril%2Fleaflet-route","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnImril%2Fleaflet-route/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnImril%2Fleaflet-route/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnImril%2Fleaflet-route/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnImril","download_url":"https://codeload.github.com/JohnImril/leaflet-route/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnImril%2Fleaflet-route/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33655440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["leaflet","react-leaflet","react-leaflet-hotline","typescript"],"created_at":"2024-11-14T02:20:23.052Z","updated_at":"2026-05-29T13:31:38.381Z","avatar_url":"https://github.com/JohnImril.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leaflet Route\n\n[Github Pages](https://johnimril.github.io/leaflet-route/)\n\n## Screenshot\n\n![App Screenshot](./assets/screenshot.png)\n\n## Description\n\nThis project demonstrates the use of the Leaflet library with React to display moving markers (trucks) on a map with routes. Routes can either be randomly generated.\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/JohnImril/leaflet-route.git\n    cd leaflet-route\n    ```\n\n2. Install dependencies:\n    ```bash\n    npm install\n    ```\n\n## Usage\n\n1. Start the project:\n    ```bash\n    npm start\n    ```\n\n## Project Structure\n\n-   `public/` - contains static files\n-   `src/`\n    -   `components/`\n        -   `ForestryMap.tsx` - main map component\n        -   `MovingIcon.tsx` - component for displaying a moving marker\n    -   `images/` - contains images, such as truck icons\n    -   `types/` - contains TypeScript types\n    -   `utils.ts` - utilities for generating routes\n    -   `App.tsx` - main application component\n    -   `index.tsx` - application entry point\n\n## Example Usage\n\n### Generating Routes\n\nThe `generateRoutes` function generates routes radiating out from a starting point. Each route has random changes in direction and speed to create realistic movement.\n\n### Displaying the Map\n\nThe `MapComponent` displays the map with markers and routes. Markers move along the routes, and hovering over a route line changes its opacity.\n\n## License\n\nThis project is licensed under the terms of the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnimril%2Fleaflet-route","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnimril%2Fleaflet-route","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnimril%2Fleaflet-route/lists"}