File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ get_zoom <- function(zoom, bbox_lonlat) {
122122 if (missing(zoom )) {
123123 gz <- bbox_tile_query(bbox_lonlat )
124124 suitable_zooms <- gz $ total_tiles < = 4
125- zoom <- gz $ zoom [max(which(suitable_zooms ))]
125+ zoom <- gz $ zoom [max(which(suitable_zooms ))] + 1
126126 }
127127 return (zoom )
128128}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ nc_sfc <- st_geometry(nc_sf)
1010nc_bbox <- st_bbox(nc_sf )
1111nc_SpatVector <- vect(nc_sf )
1212nc_SpatRaster <- rast(nc_SpatVector )
13- nc_SpatExtent <- ext(project(nc_SpatVector , " epsg :4326" ))
13+ nc_SpatExtent <- ext(project(nc_SpatVector , " EPSG :4326" ))
1414nc_sf_centro <- nc_sf [1 , ]
1515st_geometry(nc_sf_centro ) <- st_centroid(st_geometry(nc_sf_centro ))
1616nc_SpatVector_centro <- vect(nc_sf_centro )
You can’t perform that action at this time.
0 commit comments