We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a943c commit 2a60751Copy full SHA for 2a60751
R/layers.R
@@ -623,6 +623,14 @@ addMarkers <- function(
623
icon$iconRetinaUrl <- b64EncodePackedIcons(packStrings(icon$iconRetinaUrl))
624
icon$shadowUrl <- b64EncodePackedIcons(packStrings(icon$shadowUrl))
625
icon$shadowRetinaUrl <- b64EncodePackedIcons(packStrings(icon$shadowRetinaUrl))
626
+
627
+ # if iconSize is of length 2 and there is one icon url, wrap the icon size in a list
628
+ if (length(icon$iconSize) == 2) {
629
+ if (is.numeric(icon$iconSize[[1]]) && is.numeric(icon$iconSize[[2]])) {
630
+ icon$iconSize <- list(icon$iconSize)
631
+ }
632
633
634
icon <- filterNULL(icon)
635
}
636
0 commit comments