GitXplorerGitXplorer
f

django-google-maps

public
10 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
7495faeff6927e948492fec078c0912fd907274a

include OSM code just once

ffcurella committed 12 years ago
Unverified
e31335dc6542db4899b6ca6f9d5a534797e3303f

added support for openstreetmaps

ffcurella committed 12 years ago
Unverified
9724c070e0f6870d01cc6d11480ec64ea2bb26eb

added PyPI description

ffcurella committed 12 years ago
Unverified
e1d6ad9d7d38b98454a62fdaf30ab3e4abe66666

changed package name

ffcurella committed 12 years ago
Unverified
f1ad7a6a1793975538ce6e5fb9e574a96b8c0539

fixed packaging

ffcurella committed 12 years ago
Unverified
42eb54357691de66eea05cc1a41e5ea615b31eba

v2.

ffcurella committed 12 years ago

README

The README file for this repository.

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