Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Template tags for creating Google Maps from GeoDjango fields.
Python JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gmaps include OSM code just once
tests
.gitignore first commit
AUTHORS first commit
LICENSE first commit
MANIFEST.in fixed packaging issue
README.rst v2.
requirements.txt
setup.py added PyPI description

README.rst

Django Google Maps

This app provides template tags for easily creating Google Maps from GeoDjango models.

Installation

  1. Add GOOGLE_API_KEY to your settings.
  2. Add 'gmaps' to your INSTALLED_APPS.

Usage

{% load gmaps %}
<div id="mymap"></div>

{% gmap_js %} {# prints out the <script> tag calling the Google Maps API #}

{% map "mymap" object.location %}
    {% marker someobj.location %}
    {# all tags accept optional parameters that will be passed to the js constructor #}
    {% marker someobj.location "title" "'Hello, World!'" %}
    {% polygon someobj.mpoly %}
    {% polyline someobj.mpoly %}
{% endmap %}
Something went wrong with that request. Please try again.