Odoo Community Association

Mapbox Widget Demo

Beta License: LGPL-3 OCA/geospatial Translate me on Weblate Try me on Runboat

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

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

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

Credits

Authors

  • Cetmix

Contributors

Other credits

This demo uses the Mapbox form widget (web_widget_mapbox), which loads 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.

Odoo Community Association

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 project on GitHub.

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