Tile

The ALKMaps tile layer.

Inherits from

  • <L.TileLayer>
Summary
TileThe ALKMaps tile layer.
Properties
projection{String} Map projection code.
region{String} map data region code
dataset{String} map data set
style{String} map style
attribution{String} Leaflet.TileLayer attribution setting
attrPosition{String} Where to put the attribution.
attrUseHyperlink{Boolean} Whether or not to show the hyperlink to alk maps in the attribution.
maxZoom{Number} Leaflet.TileLayer maximum zoom setting
isBaseLayer{Boolean} Flag indicating if the Tile layer instance is the base layer.
Functions
TileInitializes a new Tile layer object
setStylesets/changes style of the map
setRegionsets/changes region of the map
setDatasetsets/changes dataset of the map
cloneCreate a clone of this layer
tileCreate a new ALKMaps.Layer.Tile instance
baseMapThe same as tile method.

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;

region

{String} map data region code

dataset

{String} map data set

style

{String} map style

attribution

{String} Leaflet.TileLayer attribution setting

attrPosition

{String} Where to put the attribution.  Specify “topleft” for top left of map, “topright” for top right, “bottomleft” for bottom left or “bottomright” for bottomright.  Defaults to “bottomright”.

attrUseHyperlink

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

maxZoom

{Number} Leaflet.TileLayer maximum zoom setting

isBaseLayer

{Boolean} Flag indicating if the Tile layer instance is the base layer.

Functions

Tile

Initializes a new Tile layer object

Parameters

options{Object} Tile Layer Options

setStyle

setStyle: function(styleName)

sets/changes style of the map

Parameters

styleName{String} map style (“default”, “classic”, “night” ,...)

setRegion

setRegion: function(regionCode)

sets/changes region of the map

Parameters

regionCode{String} the code for the map region (“NA”, “AS”, “EU”, ...)

setDataset

setDataset: function(dataset)

sets/changes dataset of the map

Parameters

dataset{String} the code for the map dataset (“Current”, “PCM_AS”, “PCM_EU”, ...)

clone

clone: function(params)

Create a clone of this layer

Parameters

imgoption{String} Specifies the type of satellite map request.

Returns

{<L.ALKMaps.Layer.Tile>} The cloned layer.

tile

layer.tile = function(map,
options)

Create a new ALKMaps.Layer.Tile instance

Parameters

options{Object} Tile Layer Options
var tileLayer = L.ALKMaps.Layer.tile(options);

Returns

{Object} An instance of ALKMaps.Layer.Tile

baseMap

The same as tile method.

setStyle: function(styleName)
sets/changes style of the map
setRegion: function(regionCode)
sets/changes region of the map
setDataset: function(dataset)
sets/changes dataset of the map
clone: function(params)
Create a clone of this layer
layer.tile = function(map,
options)
Create a new ALKMaps.Layer.Tile instance
Close