{"id":51142170,"url":"https://github.com/gencat/ICGC-focalbosc","last_synced_at":"2026-07-14T07:01:34.395Z","repository":{"id":42084610,"uuid":"142570496","full_name":"gencat/ICGC-focalbosc","owner":"gencat","description":"Foc al Bosc: Visor incendis forestals Catalunya 1986-2017","archived":false,"fork":false,"pushed_at":"2023-10-23T06:45:28.000Z","size":5971,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2023-10-23T07:33:47.543Z","etag":null,"topics":["icgc","mapbox-gl-js","mapping","react","reactjs"],"latest_commit_sha":null,"homepage":"https://visors.icgc.cat/focalbosc","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/gencat.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-07-27T11:46:06.000Z","updated_at":"2022-04-13T05:25:36.000Z","dependencies_parsed_at":"2023-02-15T06:35:26.121Z","dependency_job_id":"ae2a3f34-4d69-41cb-a583-183f21158008","html_url":"https://github.com/gencat/ICGC-focalbosc","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/gencat/ICGC-focalbosc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gencat%2FICGC-focalbosc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gencat%2FICGC-focalbosc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gencat%2FICGC-focalbosc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gencat%2FICGC-focalbosc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gencat","download_url":"https://codeload.github.com/gencat/ICGC-focalbosc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gencat%2FICGC-focalbosc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35450066,"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-07-14T02:00:06.603Z","response_time":114,"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":["icgc","mapbox-gl-js","mapping","react","reactjs"],"created_at":"2026-06-26T00:00:40.441Z","updated_at":"2026-07-14T07:01:34.390Z","avatar_url":"https://github.com/gencat.png","language":"JavaScript","funding_links":[],"categories":["Cartografía y Territorio"],"sub_categories":[],"readme":"\n# Foc al Bosc\n\nReact based project to visualize the distribution and the territorial scope of fires in Catalonia from 1986 until now. You also can observe the subsequent evolution of the affected area.\n\n\n## Link to live project\n\n**[visors.icgc.cat/focalbosc](https://visors.icgc.cat/focalbosc)**\n\n\n\n## Anual code updates\n\nAnually, the last year is added to the project following these steps:\n\n1. Update the PBF with the new fires and the layers name:\n\n```\nexport const PBF_INCENDIS = \"https://tilemaps.icgc.cat/tileserver/tileserver.php/incendis_v2/{z}/{x}/{y}.pbf\";\n\nexport const VECTOR_LAYER_POL = \"incendis_4326_poligons_v2\";\nexport const VECTOR_LAYER_POINT = \"incendis_4326_centroides_v2\";\n\n```\n\n2. Add the new year in **constants.js**, in the following lists:\n* mappingAnyLayer\n* ortoLayersOptions\n\n3. Copy the new CSV in the folder **src/scripts** and generate the new json of the fires executing the script:\n\n```\nnpm run \n```\n\nand copy the result in **constants.js**:\n* incendisList\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\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.\u003cbr\u003e\nYour app is ready to be deployed!\n\n\n### `npm run test-flow`\n\nRuns the static type checks.\n\n## Folder structure\n\n__build:__ Contains the built files generated by the scripts (dev package, minified package and map)\n\n__src:__ Contains an index file that requires all the modules that should be exported and all the source files that compound the package.\n\n__src/components:__ Contains all the components used in the project \n__src/resources:__ Images and resources to use inside the project\n\n__src/scripts:__ Contains the files needed to update anually de data being used in the project\n\n\n## Deploy\nEl deploy automatic es fa en una màquina amb les següents dependencies:\n - Apache o nginx\n - Nodejs\n```\nmkdir build\nnpm install\nnpm build\nmv ./* /var/www/html/\n```\n\n### Crear directori web *\"focalbosc\"*\n\n### Copiar\n\n**index.html** i el directori **/dist** dins directori web\n\n## License\n\nCopyright (c) 2019 - Geostarters (MIT License) See LICENSE file for more info.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgencat%2FICGC-focalbosc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgencat%2FICGC-focalbosc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgencat%2FICGC-focalbosc/lists"}