Add missing method documentation for ImageOverlay (#5158)

This commit is contained in:
Dave Leaver 2016-12-03 01:42:54 +13:00 committed by Per Liedman
parent 1f4c1b9c0f
commit 107859379e

View File

@ -115,6 +115,8 @@ L.ImageOverlay = L.Layer.extend({
return this;
},
// @method setBounds(bounds: LatLngBounds): this
// Update the bounds that this ImageOverlay covers
setBounds: function (bounds) {
this._bounds = bounds;
@ -137,10 +139,14 @@ L.ImageOverlay = L.Layer.extend({
return events;
},
// @method getBounds(): LatLngBounds
// Get the bounds that this ImageOverlay covers
getBounds: function () {
return this._bounds;
},
// @method getElement(): HTMLElement
// Get the img element that represents the ImageOverlay on the map
getElement: function () {
return this._image;
},