plone.formwidget.geolocation


Nameplone.formwidget.geolocation JSON
Version 3.0.6 PyPI version JSON
download
home_pagehttps://github.com/collective/plone.formwidget.geolocation
SummaryGeolocation field and widget
upload_time2023-10-31 09:29:45
maintainer
docs_urlNone
authorDavid Glick
requires_python>=3.8
licenseGPL
keywords z3c form leaflet map field widget
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ============================
Geolocation field and widget
============================

.. image:: https://github.com/collective/plone.formwidget.geolocation/actions/workflows/plone-package-test.yml/badge.svg
    :target: https://github.com/collective/plone.formwidget.geolocation/actions/workflows/plone-package-test.yml
    :alt: CI Status


This package provides a z3c.form field and a widget implementing LeafletJS
from `pat-leaflet` to define Latitude / Longitude information.

This package is used as a dependency in some other Plone add-ons, like
`collective.geolocationbehavior <https://github.com/collective/collective.geolocationbehavior>`_
but can also be used directly in your own content type schema::

    from plone.formwidget.geolocation import GeolocationField

    ...

    geolocation = GeolocationField(
        title="Geolocation",
        description="Select the location of this content",
    )

The map marker has a popup containing object title / description (by default).
The template and/or the class used to generate the popup content can be overridden
to change it (see ``@@geolocation-geojson-popup`` view).


Versions
--------

- 3.0.x -> Plone 6.0.x
- 2.2.x -> Plone 5.2.x


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

This product has been translated into

- French


Contribute
----------

- Issue Tracker: https://github.com/collective/plone.formwidget.geolocation/issues
- Source Code: https://github.com/collective/plone.formwidget.geolocation


License
-------

The project is licensed under the GPLv2.

Changelog
=========

3.0.6 (2023-10-31)
------------------

- Add `default_input_zoom` and `default_display_zoom` options in control panel
  [mpeeters]


3.0.5 (2023-06-28)
------------------

- Fix controlpanel icon.
  [petschki]

- Fix showing map when creating content and sanitize default lat/lng
  values with or without default initial configuration settings.
  [petschki]


3.0.4 (2023-06-02)
------------------

- Fix usage of default location from configuration
  [mpeeters]

- Ensure that the marker is the main marker to fix geosearch
  [mpeeters]

- Add missing French translation
  [laulaz]

- Add missing translation in widget display template
  [laulaz]

- Updated resources: `pat-leaflet=2.1.1`, `Patternslib=9.9.4`
  [petschki]


3.0.3 (2023-01-13)
------------------

- Fix configlet: boolean field cannot be required (otherwise it is impossible
  to set it to False)
  [laulaz]


3.0.2 (2022-11-10)
------------------

- Fix widget display mode: initialize map with actually saved lat/lon values.
  [petschki]


3.0.1 (2022-10-19)
------------------

- Remove the height style from the geolocation input widget map.
  It is already set by pat-leaflet.
  [thet]


3.0.0 (2022-10-11)
------------------

- Update to ES6 refactored `@patternslib/pat-leaflet`.
- Integrate Plone resources with module federation.
  [petschki]


2.2.5 (2022-09-22)
------------------

- Fix an issue when the geolocation is empty
  [mpeeters, laulaz]

- Allow to change map marker popup default content (#35).
  See ``@@geolocation-geojson-popup`` view.
  [laulaz]


2.2.4 (2022-06-02)
------------------

- Add French translations
  [laulaz]

- Add plone.restapi deserializer (if plone.restapi is installed).
  [laulaz]

- Allow to set default geolocation on new contents (via bool field in config).
  If not checked, the default geolocation is only used to center map.
  Also, the geolocation map will not show on an object if no geolocation was defined.
  [laulaz]


2.2.3 (2021-05-26)
------------------

- Add plone.restapi serializer (if plone.restapi is installed).
  [bsuttor, laulaz]

- Specify that latitude and longitude fields can be not required.
  [boulch]

- Allow empty latitude and longitude.
  [bsuttor]


2.2.2 (2020-07-10)
------------------

- Fix popup displaying the string "None" when no description was given.
  [parruc]

- Add default_location information to maps-configuration view.
  [bsuttor]


2.2.1 (2019-06-07)
------------------

- Translate map ids.
  [thet]


2.2.0 (2019-04-24)
------------------

- add geolocation settings for leaflet
  [petschki]

- Fix for Python 3.
  [pbauer]


2.1.3 (2017-12-06)
------------------

- Only include the leaflet bundle where it is needed via ``add_bundle_on_request``.
  [thet]


2.1.2 (2017-04-04)
------------------

- Explicitly include necessary zcml dependencies to avoid having to explicitly doing that in tests.
  plone.app.testing disables z3c.autoinclude.
  [thet]


2.1.1 (2017-03-06)
------------------

- Add upgrade step for changes in 2.1 + register missing upgrade steps for Plone 5 migration.
  [thet]


2.1 (2017-02-28)
----------------

- Use ``bundle-leaflet`` from the ``plone.patternslib`` package.
  This should give an out-of-the-box leaflet integration.
  [thet]

2.0 (2016-10-06)
----------------

- Make geolocation formwidget work with ``pat-leaflet``.
  [thet]

- Support for Plone 5 only, using plone.patternslib and providing an own bundle.
  [thet]


1.4 (2015-11-26)
----------------

- Leaflet: After searching, bind new marker to update lat/lng input field and
  remove MarkerClusterGroup. Fix annoying 'Uncaught Error: Couldn't autodetect
  L.Icon.Default.imagePath, set it manually.'
  [thet]

- Update Leaflet dependencies.
  [thet]


1.3 (2015-07-15)
----------------

- Add Leaflet as mapping widget. Use bower/grunt managed resources.
  [thet]

- Remove the ``div.geolocation`` elements. Instead, render the list of
  geolocation points as JSON value on a ``data-geopoints`` attribute on the map
  element.
  [thet]

- Reintroduce package level imports and avoid circular import by moving out the
  message factory.
  [thet]

- Remove the ``map`` id attribute on the map element and use instead a ``map``
  css class.
  [thet]


1.2.1 (2015-03-04)
------------------

- Avoid circular imports by removing the package level imports.
  [thet]


1.2 (2015-03-04)
----------------

- PEP8.
  [thet]


1.1 (2014-04-30)
----------------

- Simplify templates and cleanup Google Map leftovers.
  [thet]

- Convert default locations strings from Products.Maps to tuples with floats.
  [thet]

- Improve handling of non-required geolocation fields
  with missing values.
  [davisagli]

- Fix display template markup to be compatible with recent versions
  of Products.Maps.
  [davisagli]

- Add supermodel import/export handler.
  [davisagli]

- Fix declaration of exported names.
  [davisagli]

- Remove dependency on Products.Maps. Don't fail, if default_location is not
  set or maps_configuration adapter not found.
  [thet]


1.0 (2013-02-07)
----------------

- Initial release



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/collective/plone.formwidget.geolocation",
    "name": "plone.formwidget.geolocation",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "z3c form leaflet map field widget",
    "author": "David Glick",
    "author_email": "dglick@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f9/47/0583aee8122a698588f430013c5d5f45fe27d23f417e6ef2c0d756b9921f/plone.formwidget.geolocation-3.0.6.tar.gz",
    "platform": null,
    "description": "============================\nGeolocation field and widget\n============================\n\n.. image:: https://github.com/collective/plone.formwidget.geolocation/actions/workflows/plone-package-test.yml/badge.svg\n    :target: https://github.com/collective/plone.formwidget.geolocation/actions/workflows/plone-package-test.yml\n    :alt: CI Status\n\n\nThis package provides a z3c.form field and a widget implementing LeafletJS\nfrom `pat-leaflet` to define Latitude / Longitude information.\n\nThis package is used as a dependency in some other Plone add-ons, like\n`collective.geolocationbehavior <https://github.com/collective/collective.geolocationbehavior>`_\nbut can also be used directly in your own content type schema::\n\n    from plone.formwidget.geolocation import GeolocationField\n\n    ...\n\n    geolocation = GeolocationField(\n        title=\"Geolocation\",\n        description=\"Select the location of this content\",\n    )\n\nThe map marker has a popup containing object title / description (by default).\nThe template and/or the class used to generate the popup content can be overridden\nto change it (see ``@@geolocation-geojson-popup`` view).\n\n\nVersions\n--------\n\n- 3.0.x -> Plone 6.0.x\n- 2.2.x -> Plone 5.2.x\n\n\nTranslations\n------------\n\nThis product has been translated into\n\n- French\n\n\nContribute\n----------\n\n- Issue Tracker: https://github.com/collective/plone.formwidget.geolocation/issues\n- Source Code: https://github.com/collective/plone.formwidget.geolocation\n\n\nLicense\n-------\n\nThe project is licensed under the GPLv2.\n\nChangelog\n=========\n\n3.0.6 (2023-10-31)\n------------------\n\n- Add `default_input_zoom` and `default_display_zoom` options in control panel\n  [mpeeters]\n\n\n3.0.5 (2023-06-28)\n------------------\n\n- Fix controlpanel icon.\n  [petschki]\n\n- Fix showing map when creating content and sanitize default lat/lng\n  values with or without default initial configuration settings.\n  [petschki]\n\n\n3.0.4 (2023-06-02)\n------------------\n\n- Fix usage of default location from configuration\n  [mpeeters]\n\n- Ensure that the marker is the main marker to fix geosearch\n  [mpeeters]\n\n- Add missing French translation\n  [laulaz]\n\n- Add missing translation in widget display template\n  [laulaz]\n\n- Updated resources: `pat-leaflet=2.1.1`, `Patternslib=9.9.4`\n  [petschki]\n\n\n3.0.3 (2023-01-13)\n------------------\n\n- Fix configlet: boolean field cannot be required (otherwise it is impossible\n  to set it to False)\n  [laulaz]\n\n\n3.0.2 (2022-11-10)\n------------------\n\n- Fix widget display mode: initialize map with actually saved lat/lon values.\n  [petschki]\n\n\n3.0.1 (2022-10-19)\n------------------\n\n- Remove the height style from the geolocation input widget map.\n  It is already set by pat-leaflet.\n  [thet]\n\n\n3.0.0 (2022-10-11)\n------------------\n\n- Update to ES6 refactored `@patternslib/pat-leaflet`.\n- Integrate Plone resources with module federation.\n  [petschki]\n\n\n2.2.5 (2022-09-22)\n------------------\n\n- Fix an issue when the geolocation is empty\n  [mpeeters, laulaz]\n\n- Allow to change map marker popup default content (#35).\n  See ``@@geolocation-geojson-popup`` view.\n  [laulaz]\n\n\n2.2.4 (2022-06-02)\n------------------\n\n- Add French translations\n  [laulaz]\n\n- Add plone.restapi deserializer (if plone.restapi is installed).\n  [laulaz]\n\n- Allow to set default geolocation on new contents (via bool field in config).\n  If not checked, the default geolocation is only used to center map.\n  Also, the geolocation map will not show on an object if no geolocation was defined.\n  [laulaz]\n\n\n2.2.3 (2021-05-26)\n------------------\n\n- Add plone.restapi serializer (if plone.restapi is installed).\n  [bsuttor, laulaz]\n\n- Specify that latitude and longitude fields can be not required.\n  [boulch]\n\n- Allow empty latitude and longitude.\n  [bsuttor]\n\n\n2.2.2 (2020-07-10)\n------------------\n\n- Fix popup displaying the string \"None\" when no description was given.\n  [parruc]\n\n- Add default_location information to maps-configuration view.\n  [bsuttor]\n\n\n2.2.1 (2019-06-07)\n------------------\n\n- Translate map ids.\n  [thet]\n\n\n2.2.0 (2019-04-24)\n------------------\n\n- add geolocation settings for leaflet\n  [petschki]\n\n- Fix for Python 3.\n  [pbauer]\n\n\n2.1.3 (2017-12-06)\n------------------\n\n- Only include the leaflet bundle where it is needed via ``add_bundle_on_request``.\n  [thet]\n\n\n2.1.2 (2017-04-04)\n------------------\n\n- Explicitly include necessary zcml dependencies to avoid having to explicitly doing that in tests.\n  plone.app.testing disables z3c.autoinclude.\n  [thet]\n\n\n2.1.1 (2017-03-06)\n------------------\n\n- Add upgrade step for changes in 2.1 + register missing upgrade steps for Plone 5 migration.\n  [thet]\n\n\n2.1 (2017-02-28)\n----------------\n\n- Use ``bundle-leaflet`` from the ``plone.patternslib`` package.\n  This should give an out-of-the-box leaflet integration.\n  [thet]\n\n2.0 (2016-10-06)\n----------------\n\n- Make geolocation formwidget work with ``pat-leaflet``.\n  [thet]\n\n- Support for Plone 5 only, using plone.patternslib and providing an own bundle.\n  [thet]\n\n\n1.4 (2015-11-26)\n----------------\n\n- Leaflet: After searching, bind new marker to update lat/lng input field and\n  remove MarkerClusterGroup. Fix annoying 'Uncaught Error: Couldn't autodetect\n  L.Icon.Default.imagePath, set it manually.'\n  [thet]\n\n- Update Leaflet dependencies.\n  [thet]\n\n\n1.3 (2015-07-15)\n----------------\n\n- Add Leaflet as mapping widget. Use bower/grunt managed resources.\n  [thet]\n\n- Remove the ``div.geolocation`` elements. Instead, render the list of\n  geolocation points as JSON value on a ``data-geopoints`` attribute on the map\n  element.\n  [thet]\n\n- Reintroduce package level imports and avoid circular import by moving out the\n  message factory.\n  [thet]\n\n- Remove the ``map`` id attribute on the map element and use instead a ``map``\n  css class.\n  [thet]\n\n\n1.2.1 (2015-03-04)\n------------------\n\n- Avoid circular imports by removing the package level imports.\n  [thet]\n\n\n1.2 (2015-03-04)\n----------------\n\n- PEP8.\n  [thet]\n\n\n1.1 (2014-04-30)\n----------------\n\n- Simplify templates and cleanup Google Map leftovers.\n  [thet]\n\n- Convert default locations strings from Products.Maps to tuples with floats.\n  [thet]\n\n- Improve handling of non-required geolocation fields\n  with missing values.\n  [davisagli]\n\n- Fix display template markup to be compatible with recent versions\n  of Products.Maps.\n  [davisagli]\n\n- Add supermodel import/export handler.\n  [davisagli]\n\n- Fix declaration of exported names.\n  [davisagli]\n\n- Remove dependency on Products.Maps. Don't fail, if default_location is not\n  set or maps_configuration adapter not found.\n  [thet]\n\n\n1.0 (2013-02-07)\n----------------\n\n- Initial release\n\n\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Geolocation field and widget",
    "version": "3.0.6",
    "project_urls": {
        "Homepage": "https://github.com/collective/plone.formwidget.geolocation"
    },
    "split_keywords": [
        "z3c",
        "form",
        "leaflet",
        "map",
        "field",
        "widget"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f9470583aee8122a698588f430013c5d5f45fe27d23f417e6ef2c0d756b9921f",
                "md5": "76a5cc7a1a01f513548a444bc5def4c7",
                "sha256": "6f859df9575261001ac5b87cd4931321b09c4064e1e909d6ea9fe86cca9a0bb3"
            },
            "downloads": -1,
            "filename": "plone.formwidget.geolocation-3.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "76a5cc7a1a01f513548a444bc5def4c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2462249,
            "upload_time": "2023-10-31T09:29:45",
            "upload_time_iso_8601": "2023-10-31T09:29:45.890093Z",
            "url": "https://files.pythonhosted.org/packages/f9/47/0583aee8122a698588f430013c5d5f45fe27d23f417e6ef2c0d756b9921f/plone.formwidget.geolocation-3.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-31 09:29:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "collective",
    "github_project": "plone.formwidget.geolocation",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "plone.formwidget.geolocation"
}
        
Elapsed time: 0.13766s