Instances of ALKMaps.Layer.WeatherRadar are used to display weather maps. This layer only supports Spherical Mercator. It can’t be used as a base layer by default.
ALKMaps. | Instances of ALKMaps.Layer.WeatherRadar are used to display weather maps. |
Constants | |
DEFAULT_PARAMS | {Object} Hashtable of default parameter key/value pairs |
Properties | |
reproject | Deprecated. |
isBaseLayer | {Boolean} Default is false for this layer |
disableCache | {Boolean} Prevents web browser caches content for the same image URL if it is set to true. |
Constructor | |
ALKMaps. | Create a new WeatherRadar layer object |
Functions | |
clone | Create a clone of this layer |
getURL | |
getXYZ | Calculates x, y and z for the given bounds. |
setMap | When the layer is added to a map, then we can fetch our origin (if we don’t have one.) |
Create a new WeatherRadar layer object
The code below creates a transparent WeatherRadar layer.
var radar = new ALKMaps.Layer.WeatherRadar("Radar", { display: "satellite", disableCache: true }, { opacity: 0.5 });
name | {String} A name for the layer |
params | {Object} An object with key/value pairs representing the parameters for the layer. |
options | {Object} Hashtable of extra options to tag onto the layer. These options include all properties from the WMS parent class. |
clone: function( obj )
Create a clone of this layer
{ALKMaps.Layer.BaseMap} An exact clone of this layer
getURL: function ( bounds )
bounds | {ALKMaps.Bounds} |
{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters
getXYZ: function( bounds )
Calculates x, y and z for the given bounds.
bounds | {ALKMaps.Bounds} |
{Object} | an object with x, y and z properties. |
setMap: function( map )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
map | {ALKMaps.Map} |
Create a clone of this layer
clone: function( obj )
getURL: function ( bounds )
Calculates x, y and z for the given bounds.
getXYZ: function( bounds )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
setMap: function( map )