Skip to content

Commit 63dba08

Browse files
author
skuethe
committed
Update README
1 parent 77d84be commit 63dba08

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

README.Rmd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ knitr::opts_chunk$set(
1717

1818
[![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)
1919

20-
[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. Please note this package is still a beta version (check [NEWS](NEWS.md) file for available functionality).
20+
[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.
2121

2222
## Installation
2323

@@ -44,21 +44,21 @@ ol() %>%
4444
add_stamen_tiles() %>%
4545
set_view(9.5, 51.31667, zoom = 10)
4646
47+
# --- Points ---
4748
require("geojsonio")
4849
49-
features <- us_cities[1:5, ]
50+
cities <- us_cities[1:5, ]
5051
5152
ol() %>%
5253
add_stamen_tiles() %>%
53-
add_geojson(
54-
geojson_json(features),
55-
style = icon_style(),
56-
popup = features$name
57-
)
54+
add_features(cities, style = icon_style(),
55+
popup = cities$name)
5856
57+
# --- Polygons ---
5958
require("sf")
6059
61-
nc = st_read(system.file("gpkg/nc.gpkg", package = "sf"), quiet = TRUE)
60+
nc = st_read(system.file("gpkg/nc.gpkg", package = "sf"),
61+
quiet = TRUE)
6262
6363
ol() %>%
6464
add_stamen_tiles("watercolor") %>%

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An R Interface to OpenLayers
55

66
[![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)
77

8-
[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. Please note this package is still a beta version (check [NEWS](NEWS.md) file for available functionality).
8+
[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.
99

1010
Installation
1111
------------
@@ -27,29 +27,29 @@ Here we go with some basic examples:
2727

2828
``` r
2929
library(openlayers)
30-
#> openlayers 0.4.4 wrapping openlayersjs v4.3.1
30+
#> openlayers 0.4.5 wrapping openlayersjs v4.3.1
3131
```
3232

3333
``` r
3434
ol() %>%
3535
add_stamen_tiles() %>%
3636
set_view(9.5, 51.31667, zoom = 10)
3737

38+
# --- Points ---
3839
require("geojsonio")
3940

40-
features <- us_cities[1:5, ]
41+
cities <- us_cities[1:5, ]
4142

4243
ol() %>%
4344
add_stamen_tiles() %>%
44-
add_geojson(
45-
geojson_json(features),
46-
style = icon_style(),
47-
popup = features$name
48-
)
45+
add_features(cities, style = icon_style(),
46+
popup = cities$name)
4947

48+
# --- Polygons ---
5049
require("sf")
5150

52-
nc = st_read(system.file("gpkg/nc.gpkg", package = "sf"), quiet = TRUE)
51+
nc = st_read(system.file("gpkg/nc.gpkg", package = "sf"),
52+
quiet = TRUE)
5353

5454
ol() %>%
5555
add_stamen_tiles("watercolor") %>%
@@ -70,12 +70,13 @@ Code coverage
7070
package_coverage(function_exclusions = c(
7171
"layerswitcher_dependencies",
7272
"make_icon"))
73-
#> openlayers Coverage: 41.44%
73+
#> openlayers Coverage: 41.38%
7474
#> R/plugin-layerswitcher.R: 0.00%
75+
#> R/wms.R: 0.00%
7576
#> R/methods.R: 9.09%
7677
#> R/styles.R: 21.74%
7778
#> R/ol.R: 75.00%
78-
#> R/options.R: 87.50%
79+
#> R/options.R: 90.00%
7980
#> R/controls.R: 100.00%
8081
#> R/interactions.R: 100.00%
8182
#> R/utils.R: 100.00%

0 commit comments

Comments
 (0)