leaflet
leaflet copied to clipboard
addPolygons doesn't render without indicating error or warning when wrong `layerId` provided
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.