{"id":13572782,"url":"https://github.com/be-marc/leaflet.opacity","last_synced_at":"2025-03-19T23:31:13.311Z","repository":{"id":56937076,"uuid":"156525408","full_name":"be-marc/leaflet.opacity","owner":"be-marc","description":"Leaflet for R Opacity Controls","archived":false,"fork":false,"pushed_at":"2023-08-15T12:51:12.000Z","size":1307,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T12:21:27.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","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/be-marc.png","metadata":{"files":{"readme":"README.Rmd","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":"2018-11-07T09:54:27.000Z","updated_at":"2023-04-27T15:43:55.000Z","dependencies_parsed_at":"2024-01-06T14:04:22.937Z","dependency_job_id":"a16d6a49-ed0e-42b0-aaf9-230ea3465752","html_url":"https://github.com/be-marc/leaflet.opacity","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"cc0fcd0ae713b2f0c03da289d589b93d8f653c64"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-marc%2Fleaflet.opacity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-marc%2Fleaflet.opacity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-marc%2Fleaflet.opacity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-marc%2Fleaflet.opacity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/be-marc","download_url":"https://codeload.github.com/be-marc/leaflet.opacity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244524890,"owners_count":20466523,"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":[],"created_at":"2024-08-01T15:00:19.748Z","updated_at":"2025-03-19T23:31:12.702Z","avatar_url":"https://github.com/be-marc.png","language":"R","funding_links":[],"categories":["Visualization","Leaflet Functions"],"sub_categories":["Maps and Spatial Data","Opacity"],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n# leaflet.opacity\n\n# General\n\n**leaflet.opacity** extends the **leaflet** R package with the **Leaflet.OpacityControls** JavaScript plugin (LizardTech, 2013). It offers control buttons and a slider for adjusting the opacity of a layer.\n\n## Installation\n\nYou can install the released version of leaflet.opacity from [CRAN](https://CRAN.R-project.org) with:\n\n```{r, eval=FALSE}\ninstall.packages(\"leaflet.opacity\")\n```\n\nor the latest version from GitHub with:\n\n```{r, eval=FALSE}\ndevtools::install_github(\"https://github.com/be-marc/leaflet.opacity\", dependencies=TRUE)\n```\n\n## Example\n\n```{r, eval=FALSE}\nlibrary(leaflet)\nlibrary(leaflet.opacity)\nlibrary(raster)\n\nr \u003c- raster(xmn = -2.8, xmx = -2.79, ymn = 54.04, ymx = 54.05, nrows = 30, ncols = 30)\nvalues(r) \u003c- matrix(1:900, nrow(r), ncol(r), byrow = TRUE)\ncrs(r) \u003c- CRS(\"+init=epsg:4326\")\n\nleaflet() %\u003e%\n    addTiles() %\u003e%\n    addRasterImage(r, layerId = \"raster\") %\u003e%\n    addOpacitySlider(layerId = \"raster\")\n```\n\n## Reference\n\nLizardTech (2013). Leaflet.OpacityControls. Retrieved from https://github.com/lizardtechblog/Leaflet.OpacityControls\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbe-marc%2Fleaflet.opacity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbe-marc%2Fleaflet.opacity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbe-marc%2Fleaflet.opacity/lists"}