use the size given in options

name is not shadow/icon , but shadow/icon-cadetblue ( or any other color)
This commit is contained in:
fbeauchamp
2013-03-23 16:04:46 +01:00
parent 1d04e831fe
commit 46a1182ca9
+1 -1
View File
@@ -62,7 +62,7 @@ L.AwesomeMarkers.Icon = L.Icon.extend({
_setIconStyles: function (img, name) {
var options = this.options,
size = L.point(options[name + 'Size']),
size = L.point(options[name == 'shadow' ? 'shadowSize' : 'iconSize']),
anchor;
if (name === 'shadow') {