leaflegend icon indicating copy to clipboard operation
leaflegend copied to clipboard

addLegendNumeric horizontal -> bins not working

Open mtennekes opened this issue 10 months ago • 0 comments
trafficstars

Probably related to #82

library(leaflet)
data(quakes)
numPal <- colorNumeric('viridis', quakes$depth)
leaflet() %>%
	addTiles() %>%
	addLegendNumeric(
		pal = numPal,
		values = quakes$depth,
                orientation = "horizontal", 
                width = 200,
                bins = 10,
		position = 'topright',
		title = 'addLegendNumeric',
		group = 'Numeric Data'
	) 

I get:

Screenshot 2024-12-26 at 19 41 48

In "vertical" orientation I get the expected ticks, i.e. 50, 100, ... 650.

mtennekes avatar Dec 26 '24 18:12 mtennekes