HEX
Server: LiteSpeed
System: Linux server334.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: richfield (1256)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/richfield/www/vendor/tcg/voyager/docs/bread/formfields/coordinates.md
# Coordinates

## Optional Details

Set these in the Edit BREAD interface

### showLatLngInput / showAutocompleteInput

Set either of these to `false` to not include that input. Both default to `true`.

```json
{
  "showAutocompleteInput": false,
  "showLatLngInput": false
}
```

### onChange

```json
{
  "onChange": "myFunction"
}
```

Defines an onChange callback so that you can perform subsequent actions (such as using the Autocomplete Place address to populate another field) after the user changes any of the inputs in this formfield.

onChange callback is debounced at 300ms.

First parameter is `eventType` ("mapDragged", "latLngChanged", or "placeChanged"). Second parameter is `data` object containing `lat`, `lng`, and `place` properties.

```javascript
function myFunction(eventType, data) {
  console.log('eventType', eventType);
  console.log('data.lat', data.lat);
  console.log('data.lng', data.lng);
  console.log('data.place', data.place);
}
```