Fork me on GitHub

Location

Location picker widget.

location = factory('#field:location', props={
    'label': 'Location',
    'help': 'Search and pick a location on the map',
    'required': 'Location is required',
    'lat': 47.2667,
    'lon': 11.3833,
    'zoom': 14,
})

Search and pick a location on the map

Location with preset value

Location picker widget with preset value.

value = {
    'lat': 47.2667,
    'lon': 11.3833,
    'zoom': 14,
}
location = factory('#field:location', value=value, props={
    'label': 'Location',
    'help': 'Search and pick a location on the map',
    'required': 'Location is required',
})

Search and pick a location on the map