Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}
The same as above except the listener will only get fired once and then removed.
Adds the overlay to the map.
Removes all listeners to all events on the object.
Alias to fireEvent.
Fires an event of the specified type. You can optionally provide an data object — the first argument of the listener function will contain its properties.
Returns true if a particular event type has some listeners attached to it.
Alias to removeEventListener.
Alias to removeEventListener.
Alias to addEventListener.
Alias to addEventListener.
Should contain code that creates DOM elements for the overlay, adds them to map panes where they should belong and puts listeners on relevant map events. Called on map.addLayer(layer).
Should contain all clean up code that removes the overlay's elements from the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer).
Alias to addOneTimeEventListener.
Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object.
Removes a set of type/listener pairs.
Sets the opacity of the overlay.
Changes the URL of the image.
You can also use the following shortcut when you just need to make one additional method call.
You use L.Class.extend to define new classes, but you can use the same method on any class to inherit from it.
Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').