Create a new WeatherRadar layer object
Example
The code below creates a transparent WeatherRadar layer.
var radar = new ALKMaps.Layer.WeatherRadar("Radar",
{
display: "satellite",
disableCache: true
}, {
opacity: 0.5
});
Parameters
name | {String} A name for the layer |
params | {Object} An object with key/value pairs representing the parameters for the layer. |
- display - {String} for radar, infrared satellite (B/W), infrared satellite (Color), tropical cyclone names, active stormcells throughtout the US, lightning strikes, forecast temperatures, forcast hights, forcast lows, forecast precip. accum., forecast winds, wind speed, wind direction, road conditions index: wet, snowy, or icy (Beta), future road conditions index (Beta). Values: “radar”, “satellite”, “satellite-infrared-color”, “tropical-cyclones-names”, “stormcells”, “lightning-strikes”, “ftemperatures”, “ftemperatures-max”, “ftemperatures-min”, “fqsf-accum”, “fwind-speeds”, “wind-speeds”, “wind-dir”, “road-conditions-index”, “froad-conditions-index”. Defaults to “radar”
- disableCache - {Boolean} Prevents web browser caches content for the same image URL if it is set to true.
options | {Object} Hashtable of extra options to tag onto the layer. These options include all properties from the WMS parent class. |