{"id":13426226,"url":"https://github.com/r-spatial/leafsync","last_synced_at":"2025-03-15T21:30:48.356Z","repository":{"id":56936993,"uuid":"170385546","full_name":"r-spatial/leafsync","owner":"r-spatial","description":"Small Multiples for Leaflet Webmaps","archived":false,"fork":false,"pushed_at":"2022-03-03T11:13:26.000Z","size":831,"stargazers_count":36,"open_issues_count":5,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-28T04:25:42.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-spatial.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-12T20:22:47.000Z","updated_at":"2024-06-16T06:02:50.000Z","dependencies_parsed_at":"2022-08-21T05:50:54.242Z","dependency_job_id":null,"html_url":"https://github.com/r-spatial/leafsync","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/r-spatial%2Fleafsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-spatial%2Fleafsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-spatial%2Fleafsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-spatial%2Fleafsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-spatial","download_url":"https://codeload.github.com/r-spatial/leafsync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243792290,"owners_count":20348610,"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-07-31T00:01:29.471Z","updated_at":"2025-03-15T21:30:47.746Z","avatar_url":"https://github.com/r-spatial.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Leaflet Functions"],"sub_categories":["Sync Map"],"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  eval = FALSE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# leafsync - (Synced) small multiples of leaflet maps\n\n[![Travis build status](https://travis-ci.org/r-spatial/leafsync.svg?branch=master)](https://travis-ci.org/r-spatial/leafsync)\n[![monthly](http://cranlogs.r-pkg.org/badges/leafsync)](https://www.rpackages.io/package/leafsync) \n[![total](http://cranlogs.r-pkg.org/badges/grand-total/leafsync)](https://www.rpackages.io/package/leafsync)\n[![CRAN](http://www.r-pkg.org/badges/version/leafsync?color=009999)](https://cran.r-project.org/package=leafsync)\n[![status](https://tinyverse.netlify.com/badge/leafsync)](https://CRAN.R-project.org/package=leafsync)\n\n`leafsync` is a plugin for [`leaflet`](https://github.com/rstudio/leaflet) to produce potentially synchronised small multiples of leaflet web maps wrapping [`Leaflet.Sync`](https://github.com/jieter/Leaflet.Sync).\n\n\n## Installation\n\nYou can install the released version of leafsync from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"leafsync\")\n```\n\n## Example\n\n``` r\nlibrary(sp)\nlibrary(raster)\nlibrary(mapview)\n\ndata(meuse)\ncoordinates(meuse) \u003c- ~x+y\nproj4string(meuse) \u003c- CRS(\"+init=epsg:28992\")\n\n## view different aspects of same data set\nm1 \u003c- mapview(meuse, zcol = \"soil\", burst = TRUE)\nm2 \u003c- mapview(meuse, zcol = \"lead\")\nm3 \u003c- mapview(meuse, zcol = \"landuse\", map.types = \"Esri.WorldImagery\")\nm4 \u003c- mapview(meuse, zcol = \"dist.m\")\n\nsync(m1, m2, m3, m4) # 4 panels synchronised\n```\n\n![](man/figures/README-sync.png)\n\n### Code of Conduct\n\nPlease note that the 'leafsync' project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-spatial%2Fleafsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-spatial%2Fleafsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-spatial%2Fleafsync/lists"}