Metadata-Version: 2.1
Name: z3cform.locationwidget
Version: 1.1.0
Summary: GMaps Widget for string fields
Home-page: https://github.com/aormazabal/z3cform.locationwidget
Author: Albert Ormazabal Blanc
Author-email: aormazabal@tda.ad
License: GPL version 2
Project-URL: PyPI, https://pypi.python.org/pypi/z3cform.locationwidget
Project-URL: Source, https://github.com/aormazabal/z3cform.locationwidget
Project-URL: Tracker, https://github.com/aormazabal/z3cform.locationwidget/issues
Keywords: Python Plone
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: Addon
Classifier: Framework :: Plone :: 5.2
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Requires-Python: >=3.6
Provides-Extra: test

.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
   If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
   This text does not appear on pypi or github. It is a comment.

==============================================================================
z3cform.locationwidget
==============================================================================

Widget for graphically select location in to a map, and save cordinates into field
Based in gmaps.js library

Features
--------

- Gmaps library
- Api Key Google maps definition in control panel
- Coordinates default point definition in control panel
- You can show de coordinates field via checkbox


Usage
-----

You need to set the widget to needed fields into your form instance::

    from z3cform.locationwidget.field import LocationField
    from plone.supermodel import model


    class IMyModel(model.Schema):
       my_location_field = LocationField(
           title=_(u'Map Location'),
           description=_(u'Set the location mark on the map'),
           required=False,
       )

Translations
------------

This product has been translated into

- Catalan
- Spanish
- French

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

Install z3cform.locationwidget by adding it to your buildout::

    [buildout]

    ...

    eggs =
        z3cform.locationwidget


and then running ``bin/buildout``


Contributors
============

- aormazabal, aormazabal@tda.ad


Changelog
=========


1.1.0 (released)
------------------

- Initial release
