{"id":24509503,"url":"https://github.com/oxy86/react-leaflet-maps-shapefile","last_synced_at":"2025-07-31T02:36:07.332Z","repository":{"id":66639183,"uuid":"414612539","full_name":"oxy86/react-leaflet-maps-shapefile","owner":"oxy86","description":"React app with a full-screen interactive map and a simple button to upload geospatial data files in shapefile format.","archived":false,"fork":false,"pushed_at":"2021-10-07T22:44:06.000Z","size":20330,"stargazers_count":12,"open_issues_count":1,"forks_count":17,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T08:11:33.615Z","etag":null,"topics":["gis","gis-data","leaflet","leaflet-map","maps","react","react-demo","react-example-app","react-examples","react-leaflet","reactjs","shapefile","shpjs"],"latest_commit_sha":null,"homepage":"https://oxy86.github.io/react-leaflet-maps-shapefile/","language":"JavaScript","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/oxy86.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":"2021-10-07T13:28:05.000Z","updated_at":"2025-03-13T01:26:02.000Z","dependencies_parsed_at":"2023-03-11T00:11:18.039Z","dependency_job_id":null,"html_url":"https://github.com/oxy86/react-leaflet-maps-shapefile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oxy86/react-leaflet-maps-shapefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxy86%2Freact-leaflet-maps-shapefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxy86%2Freact-leaflet-maps-shapefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxy86%2Freact-leaflet-maps-shapefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxy86%2Freact-leaflet-maps-shapefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxy86","download_url":"https://codeload.github.com/oxy86/react-leaflet-maps-shapefile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxy86%2Freact-leaflet-maps-shapefile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267978026,"owners_count":24175241,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["gis","gis-data","leaflet","leaflet-map","maps","react","react-demo","react-example-app","react-examples","react-leaflet","reactjs","shapefile","shpjs"],"created_at":"2025-01-22T00:21:39.754Z","updated_at":"2025-07-31T02:36:07.284Z","avatar_url":"https://github.com/oxy86.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Leaflet Maps with Shapefile Support\n\n[![example](https://github.com/oxy86/react-leaflet-maps-shapefile/raw/main/public/app-screenshot.jpg)](#)\n\n\nThis example React application uses [react-leaflet](https://www.npmjs.com/package/react-leaflet) and [shpjs](https://www.npmjs.com/package/shpjs?activeTab=readme) npm packages to display a full-screen interactive map (like google maps, without geolocation, but for free) with a simple button to upload geospatial data files in zipped [shapefile (.shp) spatial data format](https://en.wikipedia.org/wiki/Shapefile). The geospatial data are then displayed in an Overlay. At the moment, only a single Overlay is supported (cannot render multiple shapefiles). As a bonus, it shows a marker on the centre of the map, and displays the latitude/longitude of that marker. :P\n\nSupports 30+ free [Tile Layers](https://wiki.openstreetmap.org/wiki/Tile_servers), i.e. OpenStreetMap, Stamen, ESRI, Stadia, USGI, etc. \nActually, the app includes an adapted copy of the [Leaflet-providers](https://github.com/leaflet-extras/leaflet-providers) configurations for various tiles providers. Fork it and edit the lib/TileProviders.js file to add your API keys, if you want to use one of the non-free tile providers (api key support not tested, though, you may have to hack it).\n\n[Try the live app](https://oxy86.github.io/react-leaflet-maps-shapefile/) and have fun!\n\n## Shapefiles (for testing)\n\n- Examples: There are some zipped shapefile examples in the [shapefile-examples](https://github.com/oxy86/react-leaflet-maps-shapefile/tree/main/shapefile-examples) folder \n\n- World shapefile maps\n    - [Natural Earth - world maps](http://www.naturalearthdata.com/features/)\n    - [GADM](http://www.gadm.org/version2)\n\n- USA: The US Census Bureau offers zipped shapefiles at [this page](https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html) (contains many state-based and national congressional district cartographic boundary data):\n\n- EU: The European Environment Agency offers zipped shapefiles and other GIS data of European countries [on this page](https://www.eea.europa.eu/data-and-maps/data/eea-reference-grids-2) (contains country borders and, where applicable, marine Exclusive Economic Zones): \n\n- Country shapefile maps\n    - [GADM](http://www.gadm.org/country)\n    - [Humanitarian Data Exchange](https://data.humdata.org/search?ext_geodata=1\u0026q=\u0026ext_page_size=25)\n\n## Available Scripts\n\nThe project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\nIn the project directory, you can run:\n\n### `yarn start`\n\nRuns the app in the development mode. \\\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\\\nYou will also see any lint errors in the console.\n\n### `yarn test`\n\nLaunches the test runner in the interactive watch mode.\\\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `yarn eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxy86%2Freact-leaflet-maps-shapefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxy86%2Freact-leaflet-maps-shapefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxy86%2Freact-leaflet-maps-shapefile/lists"}