Javascript Leaflet Legend Map Undefined Stack Overflow

Javascript Leaflet Legend Map Undefined Stack Overflow