Metadata-Version: 2.1
Name: odoo-addon-web_widget_mapbox_demo
Version: 18.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo-addon-web_widget_mapbox==18.0.*
Requires-Dist: odoo==18.0.*
Summary: Demo of the Mapbox form widget on partners
Home-page: https://github.com/OCA/geospatial
License: LGPL-3
Author: Cetmix, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Development Status :: 4 - Beta
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

==================
Mapbox Widget Demo
==================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:42b9f7b1c7c97bcba7c17c00784bba652b8066971f993a723853278ba7071bc8
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github
    :target: https://github.com/OCA/geospatial/tree/18.0/web_widget_mapbox_demo
    :alt: OCA/geospatial
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/geospatial-18-0/geospatial-18-0-web_widget_mapbox_demo
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module is a **demo** of the Mapbox form widget
(``web_widget_mapbox``) on contacts.

It adds a **Mapbox** tab on the partner form. The current partner is a
draggable star pin; child contacts with coordinates appear on the same
map as clickable icons. Demo data includes a company in Memmingen and
three nearby contacts.

**Table of contents**

.. contents::
   :local:

Configuration
=============

This demo has no settings of its own.

Configure the **Mapbox Token** in **Settings → General Settings →
Integrations** as described in the ``web_widget_mapbox`` module. Without
that token the Mapbox tab shows a placeholder instead of a map.

Usage
=====

Open a contact form and go to the **Mapbox** tab.

- The current partner is a bright-yellow **star** pin. Drag it to a new
  place and **Save** to write **Geo Latitude** / **Geo Longitude** (the
  same fields as on the **Partner Assignment** tab). The star is not
  clickable.
- Child contacts that have coordinates appear as smaller muted-yellow
  **user** icons. They cannot be dragged. Click one to open that contact
  in a popup form.
- Partners with no coordinates (both latitude and longitude ``0``, the
  ``base_geolocalize`` "not localized" state) show the widget
  placeholder instead of a map.

With **demo data** loaded, open **Memes LLC** (Memmingen, Germany). The
map shows the company star and three contacts at about 300 m, 900 m, and
1300 m: **Doge Much**, **Pepe Frog**, and **Chad**.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/geospatial/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/geospatial/issues/new?body=module:%20web_widget_mapbox_demo%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Cetmix

Contributors
------------

- `Cetmix OÜ <https://cetmix.com>`__:

  - Ivan Sokolov

Other credits
-------------

This demo uses the Mapbox form widget (``web_widget_mapbox``), which
loads `Mapbox GL JS <https://github.com/mapbox/mapbox-gl-js>`__ from the
Mapbox CDN. See that module's credits for licence and Terms of Service
notes.

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/geospatial <https://github.com/OCA/geospatial/tree/18.0/web_widget_mapbox_demo>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
