ALKMaps.Layer.WeatherRadar (Leaflet)

The ALKMaps weather radar layer.

Inherits from

  • <L.ImageOverlay>
Summary
ALKMaps.Layer.WeatherRadar (Leaflet)The ALKMaps weather radar layer.
Properties
projection{String} Map projection code.
opacity{Number} opacity of the weather image
display{String} “radar” or “satellite” weather
Constructor
L.ALKMaps.Layer.WeatherRadarInitializes a new WeatherRadar object
Functions
getUrlGet request URL for weather overlay image
weatherRadarCreate a new L.ALKMaps.Layer.WeatherRadar instance

Properties

projection

{String} Map projection code.  Default is “EPSG:900913”.

// Get map projection for this layer.
var projection = tileLayer.projection;
// Set map projection for this layer. Or projection can be passed in as options parameter when the layer instance is created.
tileLayer.projection = L.CRS.EPSG900913.code;

opacity

{Number} opacity of the weather image

display

{String} “radar” or “satellite” weather

Constructor

L.ALKMaps.Layer.WeatherRadar

Initializes a new WeatherRadar object

Parameters

radar{String} “radar” or “satellite” weather

Functions

getUrl

getUrl: function()

Get request URL for weather overlay image

weatherRadar

layer.weatherRadar = function(map)

Create a new L.ALKMaps.Layer.WeatherRadar instance

Parameters

display{String} “radar” or “satellite”.
var weather = L.ALKMaps.Layer.weatherRadar(params);

Returns

{Object} An instance of L.ALKMaps.Layer.WeatherRadar

getUrl: function()
Get request URL for weather overlay image
layer.weatherRadar = function(map)
Create a new L.ALKMaps.Layer.WeatherRadar instance
Close