This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Weather visualization
#2
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.
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.
Reply


Messages In This Thread
RE: Weather visualization - by admin - 05.03.2018, 08:15

Forum Jump: