leaflet icon indicating copy to clipboard operation
leaflet copied to clipboard

addPolygons doesn't render without indicating error or warning when wrong `layerId` provided

Open jerrymender opened this issue 4 years ago • 0 comments

I sometimes forget to change layerId parameter, when rename variables. It leads to not rendering polygons with no error or warning displayed. Nor sure if it's supposed to be so. Also not sure if a reprex is needed, since the problem is obvious and intuitively explainable.

myData <- data.frame(RIGHT.ID= ... , lat = ... , lon = ...)

leaflet(myData) %>% addTiles %>% addPolygons(layerId = ~WRONG.ID) No polygons, errors, warnings here

Thanks.

jerrymender avatar May 18 '21 16:05 jerrymender