| Copyright | (c) Tom Nielsen Marco Zocca 2019 |
|---|---|
| License | GPL-3 |
| Maintainer | ocramz fripost org |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Lucid.Leaflet
Contents
Description
Bindings to the LeafletJS map API.
See https://leafletjs.com/ for usage details
Synopsis
- leafletCDN :: Monad m => HtmlT m ()
- leafletCssCDN :: Monad m => HtmlT m ()
- leafletMap :: Monad m => LMap -> [LMapElement] -> HtmlT m ()
- osmTileLayer :: LMapElement
- data LMap
- data LMapElement
- newtype TileLayerProperties = TileLayerProperties {
- attribution :: Text
CDN declarations
leafletCDN :: Monad m => HtmlT m () Source #
Statement for embedding the LeafletJS javascript blob.
leafletCssCDN :: Monad m => HtmlT m () Source #
Statement for embedding the LeafletJS CSS stylesheet.
Utilities
leafletMap :: Monad m => LMap -> [LMapElement] -> HtmlT m () Source #
<SCRIPT> section that declares a LeafletJS map
osmTileLayer :: LMapElement Source #
OpenStreetMap tile layer
Types
data LMapElement Source #
Constructors
| TileLayer Text TileLayerProperties | |
| Marker (Double, Double) | |
| BindPopup Text LMapElement |
Instances
| Eq LMapElement Source # | |
Defined in Lucid.Leaflet | |
| Show LMapElement Source # | |
Defined in Lucid.Leaflet Methods showsPrec :: Int -> LMapElement -> ShowS # show :: LMapElement -> String # showList :: [LMapElement] -> ShowS # | |
newtype TileLayerProperties Source #
Constructors
| TileLayerProperties | |
Fields
| |