{"id":48689298,"url":"https://github.com/tcallsen/react-func-openlayers","last_synced_at":"2026-04-11T04:39:25.581Z","repository":{"id":37035856,"uuid":"294524229","full_name":"tcallsen/react-func-openlayers","owner":"tcallsen","description":"A sample application that demonstrates how to integrate OpenLayers with React Functional Components.","archived":false,"fork":false,"pushed_at":"2024-11-25T14:28:31.000Z","size":842,"stargazers_count":50,"open_issues_count":2,"forks_count":25,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-25T15:30:16.233Z","etag":null,"topics":["gis","openlayers","react"],"latest_commit_sha":null,"homepage":"https://taylor.callsen.me/using-openlayers-with-react-functional-components/","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/tcallsen.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}},"created_at":"2020-09-10T21:16:06.000Z","updated_at":"2024-11-25T14:28:35.000Z","dependencies_parsed_at":"2024-01-01T09:52:25.518Z","dependency_job_id":"67ffc92d-c3fa-4c89-85f2-0e32ba83ccb3","html_url":"https://github.com/tcallsen/react-func-openlayers","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"b5e2d9b3ec93ba17cc97654410b7cad091fed7f7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tcallsen/react-func-openlayers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcallsen%2Freact-func-openlayers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcallsen%2Freact-func-openlayers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcallsen%2Freact-func-openlayers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcallsen%2Freact-func-openlayers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcallsen","download_url":"https://codeload.github.com/tcallsen/react-func-openlayers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcallsen%2Freact-func-openlayers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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","openlayers","react"],"created_at":"2026-04-11T04:39:25.282Z","updated_at":"2026-04-11T04:39:25.564Z","avatar_url":"https://github.com/tcallsen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using OpenLayers with React Functional Components and Hooks\n\nHere is a sample application that demonstrates how to integrate OpenLayers with React Functional Components including:\n\n* creating a wrapper component ([MapWrapper.js](./src/components/MapWrapper.js))\n* using hooks to initialize the map and add features from props\n* get/set component state from within an OpenLayers event handler using refs\n* Fetch and parse GeoJSON features from a mock API (done inside [App.js](./src/App.js))\n\n![An example application featuring OpenLayers and React Functional Components](https://taylor.callsen.me/wp-content/uploads/2020/09/tcallsen-react-function-openlayers-example-sept-2020.jpg \"An example application featuring OpenLayers and React Functional Components\")\n\n## Install\n\nInstall the dependencies with the following command:\n\n```\nnvm use\nnpm install\n```\n\n## Launch with Development Server\n\nTo run a development build and launch the development server, execute:\n\n`npm start`\n\nOnce completed, the app should be avialable from http://localhost:3000/\n\n## Development Environment\n\nThis application was developed using create-react-app, with Node version `v22.11.0`\n\n## Supplemental Blog Post\n\nHere is a blog post I created that explains the integration in further detail: [https://taylor.callsen.me/using-openlayers-with-react-functional-components/](https://taylor.callsen.me/using-openlayers-with-react-functional-components/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcallsen%2Freact-func-openlayers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcallsen%2Freact-func-openlayers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcallsen%2Freact-func-openlayers/lists"}