static/jsvm/classes/GeoPointField.html
GeoPointField defines "geoPoint" type field for storing latitude and longitude GPS coordinates.
You can set the record field value as [types.GeoPoint], map or serialized json object with lat-lon props. The stored value is always converted to [types.GeoPoint]. Nil, empty map, empty bytes slice, etc. results in zero [types.GeoPoint].
Examples of updating a record's GeoPointField value programmatically:
record.Set("location", types.GeoPoint{Lat: 123, Lon: 456}) record.Set("location", map[string]any{"lat":123, "lon":456}) record.Set("location", []byte(`{"lat":123, "lon":456}`)Copy
columnTypegetHiddengetIdgetNamegetSystemprepareValuesetHiddensetIdsetNamesetSystemtypevalidateSettingsvalidateValue
hiddenidnamepresentablerequiredsystem
Optional data: Partial<core.GeoPointField>ColumnType implements [Field.ColumnType] interface method.
GetHidden implements [Field.GetHidden] interface method.
GetId implements [Field.GetId] interface method.
GetName implements [Field.GetName] interface method.
GetSystem implements [Field.GetSystem] interface method.
PrepareValue implements [Field.PrepareValue] interface method.
SetHidden implements [Field.SetHidden] interface method.
SetId implements [Field.SetId] interface method.
SetName implements [Field.SetName] interface method.
SetSystem implements [Field.SetSystem] interface method.
Type implements [Field.Type] interface method.
ValidateSettings implements [Field.ValidateSettings] interface method.
ValidateValue implements [Field.ValidateValue] interface method.
hidden: boolean
Hidden hides the field from the API response.
id: string
Id is the unique stable field identifier.
It is automatically generated from the name when adding to a collection FieldsList.
name: string
Name (required) is the unique name of the field.
presentable: boolean
Presentable hints the Dashboard UI to use the underlying field record value in the relation preview label.
required: boolean
Required will require the field coordinates to be non-zero (aka. not "Null Island").
system: boolean
System prevents the renaming and removal of the field.
OSLightDark
Generated using TypeDoc