django-gmaps 0.0.4

Creator: bradpython12

Last updated:

Add to Cart

Description:

djangogmaps 0.0.4

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

Installation

Add GOOGLE_API_KEY to your settings.
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 %}

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.