Function mapWeather

  • Select the weather layer to display.

    Available weather layers are wind, temperature, and rain. Wind streamers are always shown, hence the naming convention beginning with "wind-". Select "off" to hide the weather layers.

    Parameters

    • json: {
          weather: string;
      } = ...
      • weather: string

        string: "wind-wind | wind-temp | wind-rain | off"

    Returns void

    Example

    // show the temerature layer with wind streamers
    {weather: "wind-temp"}

    // hide all weather layers
    {weather: "off"}