Metadata-Version: 2.4
Name: collective.faceted.map
Version: 2.0.1
Summary: Map view for eea.facetednavigation
Home-page: https://pypi.python.org/pypi/collective.faceted.map
Author: Martin Peeters
Author-email: support@lists.affinitic.be
License: GPL version 2
Keywords: Python Plone
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: 6.2
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Requires-Python: >=3.10
License-File: LICENSE.GPL
License-File: LICENSE.rst
Requires-Dist: plone.api>=1.8.4
Requires-Dist: Products.GenericSetup>=1.8.2
Requires-Dist: z3c.jbot
Requires-Dist: eea.facetednavigation
Requires-Dist: collective.geolocationbehavior
Requires-Dist: plone.patternslib>1.1.0
Provides-Extra: test
Requires-Dist: plone.app.testing; extra == "test"
Requires-Dist: plone.testing>=5.0.0; extra == "test"
Requires-Dist: plone.app.contenttypes; extra == "test"
Requires-Dist: plone.app.robotframework[debug]; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

.. 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.


.. image:: https://github.com/affinitic/collective.faceted.map/workflows/Tests/badge.svg
    :target: https://github.com/affinitic/collective.faceted.map/actions?query=workflow%3ATests
    :alt: CI Status


======================
collective.faceted.map
======================

This package add faceted map view

Features
--------

- Faceted map based on collective.geolocationbehavior.


Examples
--------

#Todo add screenshots of map view


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

This product has been translated into

- en
- fr


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

Install collective.faceted.map by adding it to your buildout::

    [buildout]

    ...

    eggs =
        collective.faceted.map


and then running ``bin/buildout``


Contribute
----------

- Issue Tracker: https://github.com/collective/collective.faceted.map/issues
- Source Code: https://github.com/collective/collective.faceted.map


License
-------

The project is licensed under the GPLv2.


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

- Martin Peeters [Original Author], Affinitic


Changelog
=========


2.0.1 (2026-11-27)
------------------

- Redraw the map markers after each faceted query with the released
  pat-leaflet, which reads its GeoJSON only once and has no ``leaflet.refresh``,
  ``leaflet.openPopup`` or ``leaflet.closePopup`` handlers: handle these events
  in the viewlet, through the pattern instance. A patched pat-leaflet that
  handles them itself keeps doing so. Wait for pat-leaflet to be initialized
  before drawing: the faceted query could end first, leaving the map at 0,0
  (seen in Firefox). Removes the need for the ``fix-geosearch`` fork of
  ``plone.formwidget.geolocation``.
  [thomlamb]


2.0.0 (2026-11-24)
------------------

- Add Python 3.14 support (classifier and GitHub Actions).
  [boulch]

- Run the GitHub Actions tests on Plone 6.2 (Python 3.12 and 3.13) and update
  the actions. Remove the obsolete Travis CI configuration.
  [boulch]

- Use native namespace packages (PEP 420). Remove the ``pkg_resources``
  namespace declarations. Use ``importlib.resources`` in ``update_locale``.
  This version needs Python 3.10 or later and Plone 6.2.
  [boulch]

- Add ``plone6.2.x.cfg`` and ``requirements6.2.x.txt`` to test on Plone 6.2.
  [boulch]

- Fix ``test_map_view``: render the map view through ``@@faceted_query`` on a
  faceted folder, as eea.facetednavigation does. The ``getFolderContents``
  skin script does not exist in Plone 6. Load eea.facetednavigation in the
  test layer. Remove ``not_skip`` from the isort configuration.
  [boulch]


1.0.0 (2023-02-17)
------------------

- Improve code to avoid to many refresh of the map
  [mpeeters]


1.0b8 (2022-06-18)
------------------

- Ensure Plone 6 compatibility
  [boulch, laulaz]

- Fix image field fetching on objects (for display on map markers popups)
  [laulaz]

- Fix faceted map js on page load
  [boulch]


1.0b7 (2022-06-01)
------------------

- Add Github Action / fix buildout & tests
  [laulaz]

- Include missing collective.geolocationbehavior
  Otherwise, its profile is not available (as a dependency)
  [laulaz]


1.0b6 (2020-09-11)
------------------

- Avoid an error when there is no marker to display
  [mpeeters]


1.0b5 (2020-07-16)
------------------

- Handle content without geolocation for popups on hover
  [mpeeters]

- Add a css class to faceted map element that indicate if the element is geolocated
  [mpeeters]


1.0b4 (2020-05-04)
------------------

- Fix an issue when there is no geolocated results to display
  [mpeeters]


1.0b3 (2020-01-29)
------------------

- Do not use marker cluster
  [mpeeters]


1.0b2 (2020-01-29)
------------------

- Trigger the open of marker popups on hover
  [mpeeters]

- Add faceted-map-geojson-popup view to have possibility to override pointer popup value.
  [bsuttor]


1.0b1 (2020-01-28)
------------------

- Add map_configuration property on viewlet.
  [bsuttor]

- Add i18n:domain on viewlet.
  [bsuttor]


1.0a4 (2020-01-27)
------------------

- Move faceted map to a viewlet to avoid reload of map on every refresh
  [mpeeters]

- Add faceted map view.
  [bsuttor]


1.0a3 (2019-10-22)
------------------

- Add content lead image if it exists
  [mpeeters]

- Ensure that all markers are green
  [mpeeters]


1.0a2 (2019-10-18)
------------------

- Avoid to return an empty list of features that breaks Leaflet
  [mpeeters]


1.0a1 (2019-10-16)
------------------

- Initial release.
  [mpeeters]
