onAdd(map),
                         pos = this.getPosition(),
                         corner = map._controlCorners[pos];

                     L.DomUtil.addClass(container, 'leaflet-control');

                     if (pos.indexOf('bottom') !== -1) {
                         corner.insertBefore(container, corner.firstChild);
                     } else {
                         corner.appendChild(container);
                     }

                     return this;
                 }

             });

 