We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The use of the string 'white' as the iconColor for awesomeIcons results in black icons being displayed
'white'
iconColor
awesomeIcons
library(shiny) library(leaflet) d <- data.frame(x=c(2, 3), y=c(7, 2)) ui <- leafletOutput('mymap') server <- function(input, output, session) { output$mymap <- renderLeaflet({ leaflet(d) %>% addAwesomeMarkers(lng=~x, lat=~y, icon=~awesomeIcons(library='fa', icon='plus-square', iconColor='white', markerColor='blue')) }) } shinyApp(ui, server)
The issue is specific to the string 'white'. The equivalent hex code, '#ffffff', results in a white icon.
'#ffffff'
There is some special-casing of 'white' at
leaflet/inst/htmlwidgets/plugins/Leaflet.awesome-markers/leaflet.awesome-markers.js
Lines 78 to 84 in 9bf137b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The use of the string
'white'
as theiconColor
forawesomeIcons
results in black icons being displayedThe issue is specific to the string
'white'
. The equivalent hex code,'#ffffff'
, results in a white icon.There is some special-casing of
'white'
atleaflet/inst/htmlwidgets/plugins/Leaflet.awesome-markers/leaflet.awesome-markers.js
Lines 78 to 84 in 9bf137b
The text was updated successfully, but these errors were encountered: