Skip to content

Commit a0db653

Browse files
committed
fix(articles): building projections article
1 parent c49bb8f commit a0db653

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

vignettes/articles/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/

vignettes/articles/projections.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ knitr::opts_chunk$set(
1111

1212
```{r, include = FALSE}
1313
library(leaflet)
14+
library(sf)
1415
```
1516

1617
**Note:** This functionality is for advanced users and may not be supported across all functions (for example, `addRasterImage()` currently works only with EPSG:3857 Web Mercator).
@@ -74,7 +75,7 @@ leaflet() %>%
7475

7576
# Displaying shapes with custom projections
7677

77-
While tiles must be in the same projection as used in `leafletCRS()`, you must always use WGS 84 longitude/latitude data for markers, circles, polygons, and lines. Leaflet will automatically project the coordinates when displaying.
78+
While tiles must be in the same projection as used in `leafletCRS()`, you must always use WGS 84 longitude/latitude data for markers, circles, polygons, and lines. Leaflet will automatically project the coordinates when displaying.
7879

7980
This example uses data from the `{rnaturalearth}` package and projects it to the [EPSG:9311](https://epsg.io/9311) (US National Atlas Equal Area) coordinate system. Compare the first map, which uses the default CRS, to the second map, which is reprojected.
8081

@@ -116,6 +117,6 @@ plot_na_map(opts = leafletOptions(crs = epsg9311))
116117

117118
# Polar projections
118119

119-
It's possible to use polar projections, though you may encounter even more problems and incompatibilities with other Leaflet.js plugins than when using other types of custom projections.
120+
It's possible to use polar projections, though you may encounter even more problems and incompatibilities with other Leaflet.js plugins than when using other types of custom projections.
120121

121122
<!-- You can refer to [this set of examples](http://rpubs.com/bhaskarvk/leaflet-polarmaps) by Bhaskar Karambelkar to get started. -->

0 commit comments

Comments
 (0)