diff --git a/README.md b/README.md index d3bda70..4f48d0c 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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'`