lucid-extras-0.2.2: Generate more HTML with Lucid - Bootstrap, Rdash, Vega-Lite, Leaflet JS, Email.

Copyright(c) Tom Nielsen Marco Zocca 2019
LicenseGPL-3
Maintainerocramz fripost org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Lucid.Leaflet

Contents

Description

Bindings to the LeafletJS map API.

See https://leafletjs.com/ for usage details

Synopsis

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 LMap Source #

Instances
Eq LMap Source # 
Instance details

Defined in Lucid.Leaflet

Methods

(==) :: LMap -> LMap -> Bool #

(/=) :: LMap -> LMap -> Bool #

Show LMap Source # 
Instance details

Defined in Lucid.Leaflet

Methods

showsPrec :: Int -> LMap -> ShowS #

show :: LMap -> String #

showList :: [LMap] -> ShowS #