Forms

OSMWidget

class osm_field.forms.OSMWidget(lat_field, lon_field, attrs=None)

Bases: django.forms.widgets.TextInput

Adds a OpenStreetMap Leaflet dropdown map to the front-end once the user focuses the form field. See the usage chapter on how to integrate the CSS and JavaScript code.