{"id":13858157,"url":"https://github.com/crazycapivara/openlayers","last_synced_at":"2025-10-24T02:23:42.520Z","repository":{"id":94995419,"uuid":"82209616","full_name":"crazycapivara/openlayers","owner":"crazycapivara","description":"An R Interface to OpenLayers","archived":false,"fork":false,"pushed_at":"2019-07-06T13:35:50.000Z","size":3134,"stargazers_count":19,"open_issues_count":12,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T03:12:26.607Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazycapivara.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-02-16T17:56:20.000Z","updated_at":"2024-03-22T12:24:43.000Z","dependencies_parsed_at":"2023-04-06T15:35:09.752Z","dependency_job_id":null,"html_url":"https://github.com/crazycapivara/openlayers","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycapivara%2Fopenlayers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycapivara%2Fopenlayers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycapivara%2Fopenlayers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycapivara%2Fopenlayers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazycapivara","download_url":"https://codeload.github.com/crazycapivara/openlayers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253817595,"owners_count":21969007,"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-05T03:01:58.649Z","updated_at":"2025-10-24T02:23:42.427Z","avatar_url":"https://github.com/crazycapivara.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nlibrary(covr)\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# An R Interface to OpenLayers\n\n[![Travis-CI Build Status](https://travis-ci.org/crazycapivara/openlayers.svg?branch=master)](https://travis-ci.org/crazycapivara/openlayers) [![Travis-CI Build Status](https://travis-ci.org/crazycapivara/openlayers.svg?branch=develop)](https://travis-ci.org/crazycapivara/openlayers)\n\n[OpenLayers](https://openlayers.org/) is an open-source JavaScript library _making it easy to put a dynamic map in any web page_. The goal of the openlayers R package is to make this functionality available within R via the [htmlwidgets](https://github.com/ramnathv/htmlwidgets) package. Check [NEWS](NEWS.md) file for available functionality.\n\n## Installation\n\nYou can install openlayers from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"crazycapivara/openlayers\")\n\n# latest version\ndevtools::install_github(\"crazycapivara/openlayers\", ref = \"develop\")\n```\n\n## Examples\n\nHere we go with some basic examples:\n\n```{r loading, eval = TRUE}\nlibrary(openlayers)\n```\n\n```{r example, eval = FALSE}\nol() %\u003e%\n  add_stamen_tiles() %\u003e%\n  set_view(9.5, 51.31667, zoom = 10)\n\n## Points\nlibrary(\"geojsonio\")\n\ncities \u003c- us_cities[1:5, ]\n\nol()  %\u003e%\n  add_stamen_tiles() %\u003e%\n  add_features(cities, style = icon_style(),\n               popup = cities$name)\n\n## Polygons\nlibrary(\"sf\")\n\nnc \u003c- st_read(system.file(\"gpkg/nc.gpkg\", package = \"sf\"),\n             quiet = TRUE)\n\nol() %\u003e%\n  add_stamen_tiles(\"watercolor\") %\u003e%\n  add_stamen_tiles(\n    \"terrain-labels\",\n    options = layer_options(max_resolution = 13000)\n  ) %\u003e%\n  add_features(\n    data = nc,\n    style = fill_style(\"yellow\") + stroke_style(\"blue\", 1),\n    popup = nc$AREA  \n  ) %\u003e%\n  add_overview_map()\n```\n\n## Documentation\n\nA detailed documentation of the package is still under development, but all functions are documented, so that you can use the build in help functionality of R. Furthermore, check the example scripts in [inst/examples/](https://github.com/crazycapivara/openlayers/blob/master/inst/examples) to get an idea about how to use this package.\n\n## Code coverage\n\n```{r code-coverage, eval = TRUE}\npackage_coverage()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycapivara%2Fopenlayers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazycapivara%2Fopenlayers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycapivara%2Fopenlayers/lists"}