diff --git a/docs/examples/choropleth/index.md b/docs/examples/choropleth/index.md index 6d38b69f6bd..a2ec24c4d7b 100644 --- a/docs/examples/choropleth/index.md +++ b/docs/examples/choropleth/index.md @@ -194,8 +194,7 @@ Creating a control with a legend is easier, since it is static and doesn't chang legend.onAdd = function (map) { var div = L.DomUtil.create('div', 'info legend'), - grades = [0, 10, 20, 50, 100, 200, 500, 1000], - labels = []; + grades = [0, 10, 20, 50, 100, 200, 500, 1000]; // loop through our density intervals and generate a label with a colored square for each interval for (var i = 0; i < grades.length; i++) {