                      mouseout: resetHighlight,
                                    click: zoomToFeature
                                });
                            }

                            legend.onAdd = function (map) {

                                var div = L.DomUtil.create('div', 'info legend');
                                var labels = [];
                                var from, to;

                                for (var i = -1; i < breakpoints.length; i++) {
                     