mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
added spinning
This commit is contained in:
Vendored
+1
-1
@@ -48,7 +48,7 @@ L.AwesomeMarkers.Icon = L.Icon.extend({
|
||||
},
|
||||
|
||||
_createInner: function() {
|
||||
return "<i class='icon-" + this.options.icon + "'></i>";
|
||||
return "<i class='icon-" + this.options.icon + (this.options.spin ? " icon-spin'" :"'") + "></i>";
|
||||
},
|
||||
|
||||
_setIconStyles: function (img, name) {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
key: 'BC9A493B41014CAABB98F0471D759707'
|
||||
}).addTo(map);
|
||||
|
||||
L.marker([51.941196,4.512291], {icon: L.AwesomeMarkers.icon({icon: 'coffee', color: 'red'}) }).addTo(map);
|
||||
L.marker([51.941196,4.512291], {icon: L.AwesomeMarkers.icon({icon: 'spinner', color: 'red', spin:true}) }).addTo(map);
|
||||
L.marker([51.927913,4.521303], {icon: L.AwesomeMarkers.icon({icon: 'coffee', color: 'red'}) }).addTo(map);
|
||||
L.marker([51.936063,4.502077], {icon: L.AwesomeMarkers.icon({icon: 'food', color: 'purple'}) }).addTo(map);
|
||||
L.marker([51.932835,4.506969], {icon: L.AwesomeMarkers.icon({icon: 'glass', color: 'green'}) }).addTo(map);
|
||||
|
||||
Reference in New Issue
Block a user