WeatherRadarGWC.js | |
Constants | |
DEFAULT_PARAMS | {Object} Hashtable of default parameter key/value pairs |
Properties | |
reproject | Deprecated. |
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. | Create a new WeatherRadar layer object |
Functions | |
destroy | Destroy this layer |
clone | Create a clone of this layer |
getURL | Return a query string for this layer |
getFullRequestString | Combine the layer’s url with its params and these newParams. |
Create a new WeatherRadar layer object
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 });
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 )
Return a query string for this layer
bounds | {ALKMaps.Bounds} A bounds representing the bbox for the request. |
{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters.
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.
newParams | {Object} |
altUrl | {String} Use this as the url instead of the layer’s url |
{String} Layer url.
Destroy this layer
destroy: function()
Create a clone of this layer
clone: function( obj )
Return a query string for this layer
getURL: function( bounds )
Combine the layer’s url with its params and these newParams.
getFullRequestString: function( newParams, altUrl )