The ALKMaps tile layer.
Tile | The 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 | |
Tile | Initializes a new Tile layer object |
setStyle | sets/changes style of the map |
setRegion | sets/changes region of the map |
setDataset | sets/changes dataset of the map |
clone | Create a clone of this layer |
tile | Create a new ALKMaps.Layer.Tile instance |
baseMap | The same as tile method. |
{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;
sets/changes style of the map
setStyle: function( styleName )
sets/changes region of the map
setRegion: function( regionCode )
sets/changes dataset of the map
setDataset: function( dataset )
Create a clone of this layer
clone: function( params )
Create a new ALKMaps.Layer.Tile instance
layer.tile = function( map, options )