Metadata-Version: 2.0
Name: wagtailgeowidget
Version: 1.0.2
Summary: Google Maps widget for the GeoDjango PointField field in Wagtail
Home-page: https://github.com/frojd/wagtail-geo-widget
Author: Fröjd
Author-email: martin@marteinn.se
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Framework :: Django
Classifier: Topic :: Utilities
Requires-Dist: Django (>=1.8)

Wagtail-Geo-Widget
==================

A Google Maps widget for the GeoDjango PointField field in Wagtail.

.. figure:: https://raw.githubusercontent.com/frojd/wagtail-geo-widget/develop/img/screen1.png
   :alt: Screen1

   Screen1

Requirements
------------

-  Python 2.7 / Python 3.5
-  Wagtail 1.7+ and Django (with GeoDjango)

Installation
------------

Install the library with pip:

::

    $ pip install wagtailgeowidget

Quick Setup
-----------

Make sure wagtail\_geo\_widget is added to your ``INSTALLED_APPS``.

.. code:: python

    INSTALLED_APPS = (
        # ...
        'wagtailgeowidget',
    )

This should be enough to get started.

Usage
-----

First make sure you have a location field defined in your model, then
add a GeoPanel among your content\_panels.

.. code:: python

    from wagtailgeowidget.edit_handlers import GeoPanel

    class MyPage(Page):
        address = models.CharField(max_length=250, blank=True, null=True)
        location = models.PointField(srid=4326, null=True, blank=True)

        content_panels = Page.content_panels + [
            GeoPanel('location', address_field='address'),
        ]

Settings
--------

-  ``GOOGLE_MAPS_V3_APIKEY``: Api key for google maps

Contributing
------------

Want to contribute? Awesome. Just send a pull request.

License
-------

Wagtail-Geo-Widget is released under the `MIT
License <http://www.opensource.org/licenses/MIT>`__.


