bbbfly.Map. TileLayer

L.TileLayer instance will be added to map.

Properties

Name Type Default Description
Type bbbfly.Map.Layer.type tile
ErrorUrl url optional Url used when tile request has failed
Bounds mapBounds | array optional Display layer only in bounds
MinZoom number 1 optional Display layer from zoom level
MaxZoom number 18 optional Display layer to zoom level
TileSize px 256 optional Tile width and height
See:

Examples

...
Layers: [{
  Type: 'TileLayer',
  Url: 'http://tile.openstreetmap.org/{z}/{x}/{y}.png',
  Attribution: '© OpenStreetMap contributors'
}]
...

Extends