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
attribution{String} Leaflet.TileLayer attribution setting
attrPosition{String} Leaflet.TileLayer attrPosition setting.
attrUseHyperlink{Boolean} Leaflet.TileLayer attrUseHyperlink setting.
minZoom{Number} Leaflet.TileLayer minimum zoom setting.
maxZoom{Number} Leaflet.TileLayer maximum zoom setting.
tileSize{Number} Width of the tile.
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

attribution

{String} Leaflet.TileLayer attribution setting

attrPosition

{String} Leaflet.TileLayer attrPosition setting.  Specify “topleft” for top left of map, “topright” for top right, “bottomleft” for bottom left or “bottomright” for bottomright.  Defaults to “bottomright”.

attrUseHyperlink

{Boolean} Leaflet.TileLayer attrUseHyperlink setting.  Whether or not to show the hyperlink to alk maps in the attribution.  Defaults to true.

minZoom

{Number} Leaflet.TileLayer minimum zoom setting.  Will be overridden by map’s equivalent option.

maxZoom

{Number} Leaflet.TileLayer maximum zoom setting.  Will be overridden by map’s equivalent option.

tileSize

{Number} Width of the tile.

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