ALKMaps.Layer.WeatherRadar

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.

Inherits from

Summary
ALKMaps.Layer.WeatherRadarInstances of ALKMaps.Layer.WeatherRadar are used to display weather maps.
Constants
DEFAULT_PARAMS{Object} Hashtable of default parameter key/value pairs
Properties
reprojectDeprecated.
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.Layer.WeatherRadarCreate a new WeatherRadar layer object
Functions
cloneCreate a clone of this layer
getURL
getXYZCalculates x, y and z for the given bounds.
setMapWhen the layer is added to a map, then we can fetch our origin (if we don’t have one.)

Constants

DEFAULT_PARAMS

{Object} Hashtable of default parameter key/value pairs

Properties

reproject

Deprecated.  {Boolean} Try to reproject this layer if its coordinate reference system is different than that of the base layer.  Default is false.  Set this in the layer options.  Should be set to false in most cases.

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.Layer.WeatherRadar

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} radar, satellite.  Values: “radar”, “satellite”.  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.

Functions

clone

clone: function(obj)

Create a clone of this layer

Returns

{ALKMaps.Layer.BaseMap} An exact clone of this layer

getURL

getURL: function (bounds)

Parameters

bounds{ALKMaps.Bounds}

Returns

{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters

getXYZ

getXYZ: function(bounds)

Calculates x, y and z for the given bounds.

Parameters

bounds{ALKMaps.Bounds}

Returns

{Object}an object with x, y and z properties.

setMap

setMap: function(map)

When the layer is added to a map, then we can fetch our origin (if we don’t have one.)

Parameters

map{ALKMaps.Map}
clone: function(obj)
Create a clone of this layer
getURL: function (bounds)
getXYZ: function(bounds)
Calculates x, y and z for the given bounds.
setMap: function(map)
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
Base class for layers that use a lattice of tiles.
Instances of ALKMaps.Layer.BaseMap are used to display data from ALK Web Service Create a new ALK Map layer with the ALKMaps.Layer.BaseMap constructor.
Instances of this class represent bounding boxes.
Instances of ALKMaps.Map are interactive maps embedded in a web page.
Close