[Pkg-javascript-commits] [leaflet] 131/301: adding alt tag to marker icons

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:46 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 5af47dddc2d4f931463ff729d9a7c07ed8ae7a9e
Author: Jimmy Tidey <jimmytidey at gmail.com>
Date:   Wed Oct 16 14:52:05 2013 +0100

    adding alt tag to marker icons
---
 src/layer/marker/Marker.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/layer/marker/Marker.js b/src/layer/marker/Marker.js
index 0927377..d0a0f7d 100644
--- a/src/layer/marker/Marker.js
+++ b/src/layer/marker/Marker.js
@@ -9,6 +9,7 @@ L.Marker = L.Class.extend({
 	options: {
 		icon: new L.Icon.Default(),
 		title: '',
+		alt: '',
 		clickable: true,
 		draggable: false,
 		keyboard: true,
@@ -123,6 +124,10 @@ L.Marker = L.Class.extend({
 			if (options.title) {
 				icon.title = options.title;
 			}
+			
+			if (options.alt) {
+				icon.alt = options.alt;
+			}
 		}
 
 		L.DomUtil.addClass(icon, classToAdd);

-- 
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