{"id":15890610,"url":"https://github.com/dimfeld/svelte-leaflet-demo","last_synced_at":"2025-03-20T11:36:44.244Z","repository":{"id":80575784,"uuid":"304249443","full_name":"dimfeld/svelte-leaflet-demo","owner":"dimfeld","description":"This is a demo application using Svelte and Leaflet to visualize the US Census \"Metro Area-to-Metro Area Migration Flows” dataset.","archived":false,"fork":false,"pushed_at":"2023-11-06T01:13:21.000Z","size":4463,"stargazers_count":35,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-07T07:06:58.610Z","etag":null,"topics":["leaflet","svelte"],"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/dimfeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-10-15T07:47:58.000Z","updated_at":"2024-09-09T16:06:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"60647c81-6f80-4089-8953-11b624158736","html_url":"https://github.com/dimfeld/svelte-leaflet-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fsvelte-leaflet-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fsvelte-leaflet-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fsvelte-leaflet-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fsvelte-leaflet-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimfeld","download_url":"https://codeload.github.com/dimfeld/svelte-leaflet-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221756900,"owners_count":16875864,"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":["leaflet","svelte"],"created_at":"2024-10-06T07:07:02.480Z","updated_at":"2024-10-28T01:02:10.246Z","avatar_url":"https://github.com/dimfeld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Svelte and Leaflet Demo\n\nThis is a demo application using Svelte and Leaflet to visualize the US Census \"Metro Area-to-Metro Area Migration Flows” dataset.\n\nIf you like this, check out my [Svelte MapLibre library](https://github.com/dimfeld/svelte-maplibre) too.\n\nThis repository contains two versions of the application. The `full` directory is the\nfinished product, while the `skeleton` directory just contains a basic shell that renders nothing, which I\nfilled in during the presentation to build into the complete app.\n\nDeveloped for a [presentation to JavascriptLA](https://www.youtube.com/watch?v=-klB-EocorE\u0026t=770s) (video) on November 11, 2020.\n\n\n\n## References\n\n### Concepts\n\n* [Metropolitan Statistical Areas (US Census)](https://www.census.gov/topics/housing/housing-patterns/about/core-based-statistical-areas.html)\n* [Wikipedia on MSAs](https://en.wikipedia.org/wiki/Metropolitan_statistical_area)\n* [Creating Consistently Curved Lines in Leaflet](https://medium.com/@ryancatalani/creating-consistently-curved-lines-on-leaflet-b59bc03fa9dc)\n* [geojson.io](https://geojson.io) for playing with GeoJSON.\n\n### Software\n\n* [Svelte](https://svelte.dev)\n* [Leaflet](https://leafletjs.com/)\n* [Tailwind CSS](https://tailwindcss.com)\n* [Leaflet Curve Plugin](https://github.com/elfalem/Leaflet.curve)\n* [TopoJSON](https://github.com/topojson/topojson)\n* [Turf.js](https://turfjs.org/) for manipulating GeoJSON\n\n### Data\n\n* [MSA Migration Data](https://www.census.gov/data/tables/2018/demo/geographic-mobility/metro-to-metro-migration.html)\n    * Specifically [this file](https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2018/metro-to-metro-migration/metro-to-metro-2014-2018.xlsx)\n* [Shape data for MSAs](https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html)\n    * We used [cb_2018_us_cbsa_500k.zip](https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_cbsa_500k.zip)\n    * And converted from ESRI Shapefile to TopoJson using [MapShaper](https://mapshaper.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Fsvelte-leaflet-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimfeld%2Fsvelte-leaflet-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Fsvelte-leaflet-demo/lists"}