{% extends "base.html" %} {% block head %} {{ map.media }} {% endblock %} {% block body %}
This application demonstrates several of the features of olwidget in Django. To get the most out of this, you'll want to follow along with the python source code. For complete documentation of olwidget, visit http://olwidget.org.
The map supports multiple geometry types, undo and redo, deletion of vertices, and multiple providers. Click "edit" to begin.
{{ map }}Using olwidget in admin gives you support for features like customized overlay styles, undo/redo support, and multiple tile providers, and editing multiple geometry fields on a single map, and maps in the changelist. See the file testolwidget/admin.py for the following examples:
OLWidget can be used with custom forms, ModelForm's, as a standalone widget (as above), and for display maps with clickable popup info boxes.