Resize awesome markers on leaflet map

Is it possible to change the size of an awesome marker? Unlike makeIcon(), makeAwesomeIcon() doesn't provide size-related options.

data(quakes)
icon <- makeAwesomeIcon(icon="flag", markerColor="red", iconColor="white")
leaflet(data = quakes[1:20,]) %>% 
    addTiles() %>% 
    addAwesomeMarkers(~long, 
                      ~lat, 
                      icon=icon, 
                      popup = ~as.character(mag), 
                      label = ~as.character(mag))

I don't think you can - if you need flexibility you can brew your own via makeIcon() - as you noted - but the regular markers are hardwired to 35px × 45px and that seems to be that.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.