Module

Leaflet.Types

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

Basic types for Leaflet maps.

#LEAFLET Source

data LEAFLET :: Effect

Anything that uses Leaflet has a LEAFLET effect.

#Zoom Source

type Zoom = Int

A zoom level. Zoom levels start at 0 (which means "show the whole world") and zoom in exponentially, each step corresponding to a factor of 2.

#Pixels Source

type Pixels = Number

A distance in screen space, measured in logical pixels ("CSS Pixels").

#Point Source

type Point = { x :: Pixels, y :: Pixels }

A point in 2D screen space.