Module
Leaflet.TileLayer
- Package
- purescript-leaflet-tdammers
- Repository
- tdammers/purescript-leaflet-tdammers
#UrlTemplate Source
type UrlTemplate = String
A URL template for tile layers.
#TileLayerOption Source
data TileLayerOption
Options to be passed to a tile layer at construction time. See http://leafletjs.com/reference-1.0.3.html#tilelayer for an explanation of each option.
Constructors
TileLayerMinZoom Int
TileLayerMaxZoom Int
TileLayerMinNativeZoom (Maybe Int)
TileLayerMaxNativeZoom (Maybe Int)
TileLayerSubdomains (Array String)
TileLayerErrorTileUrl String
TileLayerZoomOffset Int
TileLayerTMS Boolean
TileLayerZoomReverse Boolean
TileLayerDetectRetina Boolean
TileLayerCrossOrigin Boolean
TileLayerTileSize Int
TileLayerOpacity Number
TileLayerUpdateWhenIdle Boolean
TileLayerUpdateWhenZooming Boolean
TileLayerUpdateInterval Number
TileLayerZIndex Int
TileLayerBounds LatLngBounds
TileLayerNoWrap Boolean
TileLayerPane String
TileLayerClassName String
TileLayerKeepBuffer Int
TileLayerAttribution String
Instances
#tileLayer Source
tileLayer :: forall e. UrlTemplate -> Array TileLayerOption -> Eff (leaflet :: LEAFLET | e) Layer
tileLayer template options
creates a new
tile layer using
the URL template template
to generate tile URLS.
The template can use the following variables, written between curly braces:
{z}
: zoom level{x}
,{y}
: the tile coordinates (after projection), from the range[0..(2 ^ z))
{s}
: subdomain
Example: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"