Module

Leaflet.TileLayer

Package
purescript-leaflet-tdammers
Repository
tdammers/purescript-leaflet-tdammers

#UrlTemplate Source

type UrlTemplate = String

A URL template for tile layers.

#minZoom Source

#maxZoom Source

#minNativeZoom Source

#maxNativeZoom Source

#errorTileUrl Source

#zoomOffset Source

#gridSize Source

#updateWhenIdle Source

#updateWhenZooming Source

#updateInterval Source

#zIndex Source

#keepBuffer Source

#attribution Source

#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"