Skip to content

Commit

Permalink
Merge pull request #25 from peterneubauer/2.0/develop
Browse files Browse the repository at this point in the history
Adding extreaClasses option
  • Loading branch information
lennardv2 committed Feb 23, 2014
2 parents 0a3db2e + 80b7384 commit 213cc5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ http://getbootstrap.com/getting-started/
| markerColor | Color of the marker | 'blue' | 'red', 'darkred', 'orange', 'green', 'darkgreen', 'blue', 'purple', 'darkpuple', 'cadetblue' |
| iconColor | Color of the icon | 'white' | 'white', 'black' or css code (hex, rgba etc) |
| spin | Make the icon spin | false | true or false. Font-awesome required |
| extraClasses | Additional classes in the created <i> tag | '' | 'fa-rotate90 myclass' eller other custom configuration |


### Supported icons
Expand Down
3 changes: 2 additions & 1 deletion dist/leaflet.awesome-markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
className: 'awesome-marker',
prefix: 'glyphicon',
spinClass: 'fa-spin',
extraClasses: '',
icon: 'home',
markerColor: 'blue',
iconColor: 'white'
Expand Down Expand Up @@ -75,7 +76,7 @@
}
}

return "<i " + iconColorStyle + "class='" + options.prefix + " " + iconClass + " " + iconSpinClass + " " + iconColorClass + "'></i>";
return "<i " + iconColorStyle + "class='" + options.extraClasses + " " + options.prefix + " " + iconClass + " " + iconSpinClass + " " + iconColorClass + "'></i>";
},

_setIconStyles: function (img, name) {
Expand Down

0 comments on commit 213cc5d

Please sign in to comment.