1 L.OSM.Key = L.Control.extend({
2 onAdd: function (map) {
5 return this.$container[0];
8 _initLayout: function () {
11 this.$container = $('<div>')
12 .attr('class', 'control-key');
15 .attr('class', 'control-button')
17 .attr('title', 'Map Key')
18 .html('<span class="icon key"></span>')
19 .appendTo(this.$container);
23 L.OSM.key = function(options) {
24 return new L.OSM.Key(options);