Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mpowaga committed May 12, 2015
1 parent 1ee9bf2 commit 45d6f1f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Coordinates will be saved as string in format `latititude,longitude`. Alternativ
```
Schemas.Cities = new SimpleSchema
location:
type: String
type: Object
autoform:
type: 'map'
afFieldInput:
Expand All @@ -62,6 +62,24 @@ Schemas.Cities = new SimpleSchema
type: String
```

Or if you want to save lat and lng as a number:

```
Schemas.Cities = new SimpleSchema
location:
type: Object
autoform:
type: 'map'
afFieldInput:
# options
'location.lat':
type: Number
decimal: true
'location.lng':
type: Number
decimal: true
```

### Options ###

*mapType* type of google map. Possible values: `'roadmap' 'satellite' 'hybrid' 'terrain'`
Expand Down

0 comments on commit 45d6f1f

Please sign in to comment.