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
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 %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-gmaps-0.0.4.tar.gz
(5.5 kB
view details)
File details
Details for the file django-gmaps-0.0.4.tar.gz.
File metadata
- Download URL: django-gmaps-0.0.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c8beecf4c1ff3e4ad81a2c3415ec0960d912a82c003206d96518fe5d563109
|
|
| MD5 |
0f32f03829b4235473d1afd895bd9189
|
|
| BLAKE2b-256 |
8b131d38a2e7ffec7d235cd36c875ffe5949a556a00367c146571a442a190c26
|