 own constructor for the control, you'll also probably want to process options properly:</p>

<pre><code>var MyControl = L.Control.extend({
	initialize: function (foo, options) {
// ...
L.Util.setOptions(this, options);
	},
	// ...
});</code></pre>

<p>This will allow you to pass options like <code>position</code> when creating the control instances:</p>

<pre><code>map.addControl(new MyControl('bar', {position: 'bottomleft'}));</code></pre>




