plone.formwidget.geolocation

Geolocation field and widget


Keywords
z3c, form, leaflet, map, field, widget
License
GPL-2.0+
Install
pip install plone.formwidget.geolocation==3.0.6

Documentation

Geolocation field and widget

CI Status

This package provides a z3c.form field and a widget implementing LeafletJS from plone.patternslib to define Latitude / Longitude informations.

This package is used as a dependency in some other Plone add-ons, like 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 overriden to change it (see @@geolocation-geojson-popup view).

Limitations

Current branch is tested on Plone 5.2.x & Plone 6.0.x.

Translations

This product has been translated into

  • French

Contribute

License

The project is licensed under the GPLv2.