[Pkg-javascript-commits] [leaflet] 48/301: add attribution and update function

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit e5a129a59f9551347912075bb58201f6e0085fee
Author: Stefan Sydow <st at metafly.info>
Date:   Fri Jun 28 22:24:31 2013 +0200

    add attribution and update function
---
 src/layer/ImageOverlay.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/layer/ImageOverlay.js b/src/layer/ImageOverlay.js
index 73fc652..1334819 100644
--- a/src/layer/ImageOverlay.js
+++ b/src/layer/ImageOverlay.js
@@ -71,6 +71,15 @@ L.ImageOverlay = L.Class.extend({
 		return this;
 	},
 
+	updateImage: function (url) {
+		this._url = url;
+		this._image.src = this._url;
+	},
+
+	getAttribution: function () {
+		return this.options.attribution;
+	},
+
 	_initImage: function () {
 		this._image = L.DomUtil.create('img', 'leaflet-image-layer');
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list