olwrapper-0.4.1: An OpenLayers JavaScript Wrapper and Webframework with snaplet-fay

Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenLayers.Types

Contents

Description

 

Synopsis

Constants

Types

type

type GeoId = Integer Source

Layers with IDs are using GeoId

data

data Projectionlike Source

OpenLayers Projection constructed f.e. with 'Projection "EPSG:4326"'

Constructors

Projection String 

data Coordinate Source

constructor for a coordinate with x,y and projection

Constructors

Coordinate 

Fields

x :: Double

first coordinate

y :: Double

second coordinate

from :: Projectionlike

projection

data Opacity Source

Layer Opacity from min=0 (not visible) to max=100

Constructors

Opacity Integer 

data GeoFeature Source

defining a new feature to add to the map, possible are GeoPoint and GeoLine

Constructors

GeoPoint

A GeoPoint is a styled point feature with an id

Fields

pt :: Coordinate

position with a Coordinate

id :: GeoId

id for the feature with GeoId

pstyle :: GeoPointStyle

pointstyle with GeoPointStyle

GeoLine

A GeoLine is a styled line feature with an id

Fields

pts :: [Coordinate]

linepoints as a list of Coordinate

id :: GeoId

id for the feature with GeoId

lstyle :: GeoLineStyle

linestyle with GeoLineStyle

data GeoLineStyle Source

defining a style for a GeoLine feature

Constructors

GeoLineStyle 

Fields

color :: String

line color, can be a name (red) or code (#FF0000)

width :: Integer

width of the line

data GeoPointStyle Source

defining a style for a circled GeoPoint feature

Constructors

GeoPointStyle 

Fields

radius :: Integer

radius of the circle

fillcolor :: String

fill color of the circle, can be a name (red) or code (#FF0000)

outcolor :: String

line color of the border of the circle, name (red) or code (#FF0000)

outwidth :: Integer

width of the border of the circle, if 0 no outcolor needed

data MapSource Source

list of possible mapsources

Constructors

Sat

MapQuest's satellite

Hyb

MapQuest's hybrid

Osm

MapQuest's OpenStreetMap

OSM

OpenStreetMap

List

mapQuests :: [MapSource] Source

puts the sources from MapQuest in a list

Functions

showMapSource :: MapSource -> String Source

transform MapSource to String and handle wrong input