-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMapView.elm
More file actions
31 lines (28 loc) · 1.02 KB
/
MapView.elm
File metadata and controls
31 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module MapView exposing (..)
import UIHelper exposing (..)
import MapModel exposing (..)
import MapMsg exposing (..)
import Html exposing (..)
import Html.Events exposing (..)
import Html.Attributes exposing (..)
view : Model -> Html Msg
view model =
div []
[
div [ class "divMainContainer" ] [
div [ class "toolbar" ] [
div [ class "toolbarButtons" ] [
button [ onClick (CreateNode InitNode) ] [ text "Add" ]
,button [ onClick StartConnecting ] [ text "StartConnect" ]
,button [ onClick (ZoomChange 0.2) ] [ text "[ + ]" ]
,button [ onClick (ZoomChange -0.2) ] [ text "[ - ]" ]
]
,div [ class "toolbarText" ] [ text model.toolbarText ] ]
,div [ class "divMapPanel" ] [ getSvgPanel model ]
,div [ class "divSidePanel" ] [
div [] [ text "Map Nodes" ]
,div [] (List.map (\x ->
div (getSidePanelNodeAttributes model x) [ text x.displayText ]) model.nodes)
,getPropertyPanel model ]
]
]