05.03.2018, 08:15
1. Use an arrow icon with square proportions. Add object with this icon to visualization, set Additional classes to angle
2. Add to Custom JavaScript (Scripting > Tools > Edit custom JavaScript). Change 32/1/1 to your wind direction/angle object.
If you want a full compass then you need to add compass background with image element.
2. Add to Custom JavaScript (Scripting > Tools > Edit custom JavaScript). Change 32/1/1 to your wind direction/angle object.
Code:
$(function(){
grp.listen('32/1/1', function(obj) {
$('.angle').css('transform', 'rotate(' + obj.value + 'deg');
});
});
If you want a full compass then you need to add compass background with image element.