Module
Leaflet.TileLayer
- Package
- purescript-leaflet-tdammers
- Repository
- tdammers/purescript-leaflet-tdammers
#UrlTemplate Source
type UrlTemplate = String
A URL template for tile layers.
#Option Source
data Option
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
MinZoom Int
MaxZoom Int
MinNativeZoom (Maybe Int)
MaxNativeZoom (Maybe Int)
Subdomains (Array String)
ErrorTileUrl String
ZoomOffset Int
TMS Boolean
ZoomReverse Boolean
DetectRetina Boolean
CrossOrigin Boolean
GridLayerOption Option
Instances
#errorTileUrl Source
errorTileUrl :: String -> Option
#zoomOffset Source
zoomOffset :: Int -> Option
#zoomReverse Source
zoomReverse :: Boolean -> Option
#detectRetina Source
detectRetina :: Boolean -> Option
#crossOrigin Source
crossOrigin :: Boolean -> Option
#updateWhenIdle Source
updateWhenIdle :: Boolean -> Option
#updateWhenZooming Source
updateWhenZooming :: Boolean -> Option
#updateInterval Source
updateInterval :: Number -> Option
#bounds Source
bounds :: LatLngBounds -> Option
#keepBuffer Source
keepBuffer :: Int -> Option
#attribution Source
attribution :: String -> Option
#tileLayer Source
tileLayer :: forall e. UrlTemplate -> Array Option -> 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"