{% extends "base.html" %} {% block head %} {{ map.media }} {% endblock %} {% block body %}

OLWidget Example App

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.

Basic map features

The map supports multiple geometry types, undo and redo, deletion of vertices, and multiple providers. Click "edit" to begin.

{{ map }}

In admin

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:

In userland

OLWidget can be used with custom forms, ModelForm's, as a standalone widget (as above), and for display maps with clickable popup info boxes.

{% endblock %}