switch icons to Font Awesome (for now)

This commit is contained in:
Norbert Renner 2016-10-01 12:30:30 +02:00
parent d53fb7723f
commit b108efae5c
8 changed files with 33 additions and 13 deletions

View file

@ -117,8 +117,8 @@ BR.Map = {
layersControl = L.control.layers(baseLayers, overlays).addTo(map);
L.control.locate({
icon: 'glyphicon glyphicon-screenshot',
iconLoading: 'glyphicon glyphicon-refresh',
icon: 'fa fa-location-arrow',
iconLoading: 'fa fa-spinner fa-pulse',
}).addTo(map);
L.control.scale().addTo(map);

View file

@ -12,7 +12,7 @@ BR.Message = L.Class.extend({
_show: function (msg, type) {
var ele = L.DomUtil.get(this.id),
iconClass = (type === 'warning') ? 'glyphicon-warning-sign' : 'glyphicon-remove',
iconClass = (type === 'warning') ? 'fa-exclamation-triangle' : 'fa-times-circle',
alertClass = (type === 'warning') ? 'alert-warning' : 'alert-danger';
ele.innerHTML =
@ -20,7 +20,7 @@ BR.Message = L.Class.extend({
+ ' <button type="button" class="close" data-dismiss="alert" aria-label="Close">'
+ ' <span aria-hidden="true">&times;</span>'
+ ' </button>'
+ ' <span class="glyphicon ' + iconClass + '" aria-hidden="true"/></span>'
+ ' <span class="fa ' + iconClass + '" aria-hidden="true"/></span>'
+ msg
+ '</div>';

View file

@ -48,7 +48,7 @@
drawButton = L.easyButton({
states: [{
stateName: 'deactivate-draw',
icon: 'glyphicon-ok',
icon: 'fa-pencil active',
onClick: function (control) {
routing.draw(false);
control.state('activate-draw');
@ -56,7 +56,7 @@
title: 'Stop drawing route'
}, {
stateName: 'activate-draw',
icon: 'glyphicon-road',
icon: 'fa-pencil',
onClick: function (control) {
routing.draw(true);
control.state('deactivate-draw');
@ -66,7 +66,7 @@
});
deleteButton = L.easyButton(
'glyphicon-trash',
'fa-trash-o',
function () {
bootbox.confirm({
size: 'small',