Mapbox Widget
web_widget_mapbox · OCA/geospatial
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module adds a form-view Mapbox map widget for JSON fields.
Declare a fields.Json field on any model and set widget="mapbox" in the
form arch. The widget renders markers from a JSON payload, supports map and
satellite styles, zoom, pan, pitch, and fullscreen, and can open a popup
form when a marker is marked clickable.
Markers may use optional Font Awesome icons, sizes, and HEX colors. When several markers share a location, earlier items in the payload are drawn on top. The Map / Satellite control remembers the last choice in the browser and applies it to every mapbox widget on that origin.
Mapbox GL JS is loaded from the Mapbox CDN at runtime and is not vendored in this addon.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- web_widget_mapbox_demo
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.web_widget_mapbox | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
session_info(self)
-
mapbox_tokenCharconfig_parameter='web_widget_mapbox.token'help='Public Mapbox access token used by the Mapbox form widget. Create a token at https://account.mapbox.com/.'
No public methods.