diff --git a/R/mapviewControls.R b/R/mapviewControls.R index 22e9119f5..0e7904561 100644 --- a/R/mapviewControls.R +++ b/R/mapviewControls.R @@ -193,7 +193,7 @@ getProjection <- function(x) { if (inherits(x, c("Raster", "Spatial"))) { prj <- raster::projection(x) } else { - prj <- sf::st_crs(x)$"proj4string" + prj <- sf::st_crs(x)$proj4string } return(prj)