Skip to content

Commit 7a4fec6

Browse files
committed
Got Antartica working
1 parent 1652ae2 commit 7a4fec6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

inst/examples/polarProjections.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ polarmaps[[5]]
9595
polarmaps[[6]]
9696

9797
#' ## Antartica
98-
#' ### NOT YET WORKING
9998
#' Code adapted from
10099
#' https://github.com/nasa-gibs/gibs-web-examples/blob/release/examples/leaflet/antarctic-epsg3031.js <br/>
101-
#' This should work in theory but not working yet.
102100

103101
resolutions <- c(8192, 4096, 2048, 1024, 512, 256)
104102
center <- c(-90,0)
@@ -120,7 +118,6 @@ leaflet(options= list(
120118
crs=crsAntartica,
121119
zoom=zoom, maxZoom=maxZoom, center= center,
122120
continuousWorld = TRUE, worldCopyJump = FALSE)) %>%
123-
setView(-90,0,0) %>%
124121
addTiles(urlTemplate = antarticaTilesURL,
125122
layerId = "antartica_tiles",
126123
attribution = "<a href='https://earthdata.nasa.gov/gibs'> NASA EOSDIS GIBS</a>&nbsp;&nbsp;&nbsp; <a href='https://github.com/nasa-gibs/web-examples/blob/release/leaflet/js/antarctic-epsg3031.js'> View Source </a>",
@@ -131,6 +128,7 @@ leaflet(options= list(
131128
continuousWorld = TRUE,
132129
format = "image%2Fjpeg"
133130
)) %>%
131+
addGraticule() %>%
134132
htmlwidgets::onRender(
135133
"function(el, t){
136134
var myMap = this;

0 commit comments

Comments
 (0)