BaseGeometryWidget.template_name
The template used to render the map widget.
You can pass widget attributes in the same manner that for any other Django widget. For example:
1 2 3 4 5 | from django.contrib.gis import forms class MyGeoForm(forms.Form): point = forms.PointField(widget = forms.OSMWidget(attrs = { 'map_width' : 800 , 'map_height' : 500 })) |
Please login to continue.