Skip to content

Commit

Permalink
consolidate WMS getLayers
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 3, 2021
1 parent cc1862c commit d30c1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/WMSCapabilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ WMSCapabilities <- R6Class("WMSCapabilities",
if(pretty){
layers <- do.call("rbind", lapply(layers, function(x){
return(data.frame(
name = x$getName(),
name = if(!is.null(x$getName())){x$getName()}else{NA},
title = x$getTitle(),
stringsAsFactors = FALSE
))
Expand Down

0 comments on commit d30c1c7

Please sign in to comment.