This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function to create a circle size legend in Leaflet | |
# This takes as input a variable to determine the size range, | |
# a number of sizes to show, and a label and writes the HTML | |
# to create the legend. | |
# | |
# It requires some custom CSS that must be included somewhere: | |
# | |
# .legendCircle { | |
# border-radius:50%; |