WeatherRadarGWC.js

Summary
WeatherRadarGWC.js
Constants
DEFAULT_PARAMS{Object} Hashtable of default parameter key/value pairs
Properties
reprojectDeprecated.
isBaseLayer{Boolean} Default is false for this layer
singleTile{Boolean} Use single tile for WeatherRadar image.
sphericalMercator{Boolean} Set this property to true for Spherical Mercator projection.
projection{String} Support “EPSG:4326” or “EPSG:900913”
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
destroyDestroy this layer
cloneCreate a clone of this layer
getURLReturn a query string for this layer
getFullRequestStringCombine the layer’s url with its params and these newParams.

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

singleTile

{Boolean} Use single tile for WeatherRadar image.  If tiles are used, the service provider’s logo shows on each tile.

sphericalMercator

{Boolean} Set this property to true for Spherical Mercator projection.

projection

{String} Support “EPSG:4326” or “EPSG:900913”

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",
         visiblesat: true
     }, {
         opacity: 0.5,
         sphericalMercator: true // or false
     });

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.  Defaults to “radar”
  • visiblesat - {Boolean} Shows visible satellite instead of infrared (only works during daylight hours).  Defaults to false
options{Object} Hashtable of extra options to tag onto the layer.  These options include all properties from the WMS parent class.

Functions

destroy

destroy: function()

Destroy this layer

clone

clone: function(obj)

Create a clone of this layer

Returns

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

getURL

getURL: function(bounds)

Return a query string for this layer

Parameters

bounds{ALKMaps.Bounds} A bounds representing the bbox for the request.

Returns

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

getFullRequestString

getFullRequestString: function(newParams,
altUrl)

Combine the layer’s url with its params and these newParams.

Add the SRS parameter from projection -- this is probably more eloquently done via a setProjection() method, but this works for now and always.

Parameters

newParams{Object}
altUrl{String} Use this as the url instead of the layer’s url

Returns

{String} Layer url.

destroy: function()
Destroy this layer
clone: function(obj)
Create a clone of this layer
getURL: function(bounds)
Return a query string for this layer
getFullRequestString: function(newParams,
altUrl)
Combine the layer’s url with its params and these newParams.
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.
Close