Leaflet
- Package
- purescript-leaflet-tdammers
- Repository
- tdammers/purescript-leaflet-tdammers
Re-exports from Leaflet.LatLng
#LatLngBounds Source
data LatLngBounds :: TypeBounding rectangle in geo coordinate space.
#latLngBounds Source
latLngBounds :: LatLng -> LatLng -> LatLngBoundsConstruct a LatLngBounds from two corners
Re-exports from Leaflet.Map
#MouseEvent Source
type MouseEvent = { containerPoint :: Point, latlng :: LatLng, layerPoint :: Point }Metadata for a mouse event.
#Map Source
data Map :: TypeA map object (http://leafletjs.com/reference-1.0.3.html#map-example)
#onMouseUp Source
onMouseUp :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the mouseup event (mouse button pressed)
#onMouseOver Source
onMouseOver :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the mouseover event
#onMouseOut Source
onMouseOut :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the mouseout event
#onMouseMove Source
onMouseMove :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the mousemove event
#onMouseEvent Source
onMouseEvent :: forall e. String -> Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to a mouse even by name.
#onMouseDown Source
onMouseDown :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the mousedown event (mouse button released)
#onDblClick Source
onDblClick :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the dblclick event (double click)
#onClick Source
onClick :: forall e. Map -> (MouseEvent -> e Unit) -> e UnitSubscribe to the click event
#invalidateSize Source
invalidateSize :: forall e. Map -> Eff (leaflet :: LEAFLET | e) UnitTell a map that the size of its container may have changed, causing it to
Re-exports from Leaflet.TileLayer
#UrlTemplate Source
type UrlTemplate = StringA URL template for tile layers.
#TileLayerOption Source
data TileLayerOptionOptions 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 IntTileLayerMaxZoom IntTileLayerMinNativeZoom (Maybe Int)TileLayerMaxNativeZoom (Maybe Int)TileLayerSubdomains (Array String)TileLayerErrorTileUrl StringTileLayerZoomOffset IntTileLayerTMS BooleanTileLayerZoomReverse BooleanTileLayerDetectRetina BooleanTileLayerCrossOrigin BooleanTileLayerTileSize IntTileLayerOpacity NumberTileLayerUpdateWhenIdle BooleanTileLayerUpdateWhenZooming BooleanTileLayerUpdateInterval NumberTileLayerZIndex IntTileLayerBounds LatLngBoundsTileLayerNoWrap BooleanTileLayerPane StringTileLayerClassName StringTileLayerKeepBuffer IntTileLayerAttribution String
Instances
#tileLayer Source
tileLayer :: forall e. UrlTemplate -> Array TileLayerOption -> Eff (leaflet :: LEAFLET | e) LayertileLayer 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"