Skip to main content

Template tags for creating Google Maps from GeoDjango fields.

Project description

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 %}

Project details


Release history Release notifications

History Node

0.0.4

History Node

0.0.3

This version
History Node

0.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-gmaps-0.0.2.tar.gz (5.2 kB) Copy SHA256 hash SHA256 Source None Nov 15, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page