riatelab / cartography

Thematic Cartography for R
http://riatelab.github.io/cartography/docs/
398 stars 46 forks source link

Error in labelLayer when nrow(x) == 1 & overlap = FALSE #56

Closed rCarto closed 4 years ago

rCarto commented 4 years ago
library(sf)
mtq <- st_read(system.file("gpkg/mtq.gpkg", package="cartography"))
plot(st_geometry(mtq))
labelLayer(x = mtq[1,], txt = "LIBGEO", overlap = F)
HuguesPecout commented 4 years ago

overlap argument generate an error for sf object with only 1 entity