From 9f446acc96ce58bd8bf729062f0c811e873f4ab9 Mon Sep 17 00:00:00 2001 From: Lennard Voogdt Date: Sun, 17 Mar 2013 14:59:03 +0100 Subject: [PATCH] added iconColor option so this is in sync with bootstraps icons --- dist/leaflet.awesome-markers.css | 6 +++++- dist/leaflet.awesome-markers.js | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dist/leaflet.awesome-markers.css b/dist/leaflet.awesome-markers.css index 1ce0193a8..28b1e6d58 100644 --- a/dist/leaflet.awesome-markers.css +++ b/dist/leaflet.awesome-markers.css @@ -23,12 +23,16 @@ Version: 1.0 } .awesome-marker i { - color: #fff; + color: #333; margin-top: 10px; display: inline-block; font-size: 14px; } +.awesome-marker .icon-white { + color: #fff; +} + /* Colors */ .awesome-marker-icon-red { background-position: 0 0; diff --git a/dist/leaflet.awesome-markers.js b/dist/leaflet.awesome-markers.js index e4758fdd9..04424bed5 100644 --- a/dist/leaflet.awesome-markers.js +++ b/dist/leaflet.awesome-markers.js @@ -23,7 +23,8 @@ L.AwesomeMarkers.Icon = L.Icon.extend({ shadowSize: [36, 16], className: 'awesome-marker', icon: 'home', - color: 'blue' + color: 'blue', + iconColor: 'white' }, initialize: function (options) { @@ -54,7 +55,9 @@ L.AwesomeMarkers.Icon = L.Icon.extend({ }else{ iconClass="icon-"+this.options.icon; } - return ""; + return ""; }, _setIconStyles: function (img, name) {