You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using tm_basemap() function after a tmap plot, the basemap seems to be flipped/mirrored(?) and does not align with the sf object. This is just an issue with the plot mode and works fine in the view mode. This also does not seem to be the issue with basemap provider as well.
To Reproduce
library(sf)
#> Linking to GEOS 3.12.2, GDAL 3.9.3, PROJ 9.4.1; sf_use_s2() is TRUE
library(tmap)
#> #> Attaching package: 'tmap'#> The following object is masked from 'package:datasets':#> #> rivers
tmap_mode("plot")
#> ℹ tmap mode set to "plot".nc<- st_read(system.file("shape/nc.shp", package="sf"))
#> Reading layer `nc' from data source #> `C:\Users\pukar\AppData\Local\R\win-library\4.4\sf\shape\nc.shp' #> using driver `ESRI Shapefile'#> Simple feature collection with 100 features and 14 fields#> Geometry type: MULTIPOLYGON#> Dimension: XY#> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965#> Geodetic CRS: NAD27
qtm(
nc,
fill=NA,
col="red"
) +
tm_basemap()
qtm(
nc,
fill=NA,
col="red"
) +# changing provider still has the same issue
tm_basemap("Esri.WorldImagery")
Describe the bug
When using tm_basemap() function after a tmap plot, the basemap seems to be flipped/mirrored(?) and does not align with the sf object. This is just an issue with the plot mode and works fine in the view mode. This also does not seem to be the issue with basemap provider as well.
To Reproduce
Created on 2024-11-20 with reprex v2.1.1
Session info
Additional context
This is how it used to look like before.
The text was updated successfully, but these errors were encountered: