Closed BastienFR closed 1 year ago
I think I see the root of the issue. Your line of code that gives the error didn't include the popup =
parameter for the popupTable
, so mapview
is trying to pass it to the map
parameter.
Your code was:
mapview(sh, leafpop::popupTable(sh, zcol = c("name", "religion"))) # give an error
Should be:
mapview(sh, popup = leafpop::popupTable(sh, zcol = c("name", "religion"))) # this works!
OMG... I feel like an idiot. That's is such a rookie mistake, I can't believe I didn't catch it... Hopefully this post will disappear deep down the internet far from everybody's sight!
No worries, we all make mistakes! I didn't catch it either... Was going to investigate over the weekend 😉
I've encounter a weird bug when trying to use
leafpop::popupTable(...)
with my data from Open Street Map. It a problem that seems really data specific, but at the same time I can't pin point what is wrong and it seems like a bug to me so I'm posting it here.Gives the error:
When I say it's data specific, the same use of popupTable works on these shapes:
I've played with the data, remove rows, column, etc, and I always have the same error.
I lived the problem on 2 different machines. One of them: