This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type UserInfo = { Name: string; Email : string} | |
| module Server = | |
| [<Rpc>] | |
| let GetUsers () = | |
| Db.GetUsers // Your db call | |
| |> Seq.map (fun u -> | |
| { | |
| Name = u.Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let options = new MapOptions(8, center, MapTypeId.ROADMAP) | |
| let map = new Google.Maps.Map(mapElement.Body, options) | |
| // Create the marker | |
| let markerOption = new MarkerOptions(center) | |
| markerOption.Map <- map | |
| let marker = new Marker(markerOption) | |
| // Function for setting mark the lat/long. | |
| let setLatLong (latLong: LatLng) = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .myValidIcon | |
| { | |
| width : 20px; | |
| height : 20px; | |
| background-color: Green; | |
| } | |
| .myErrorIcon | |
| { | |
| width : 20px; |
NewerOlder