[18.0][ADD] web_widget_mapbox: Mapbox map form widget - #478
ivs-cetmix wants to merge 2 commits into
Conversation
ef4f59c to
7623d18
Compare
|
Hey @etobella @rvalyi @pedrobaeza I know this is not in the /web repo, yet it's a widget, so it might deserve your attention 😄 |
|
If it doesn't depend on anything of geoengine as I see in the manifest, it should go to OCA/web. |
@pedrobaeza |
|
Can you include some kind of demo views to try the module? |
This will require to add some models as well. However I can do a tiny web_widget_mapbox_demo module, let me know this wokrs for you. |
|
I was thinking in doing it in |
|
Yup, I thought about base and res.partner first as well, however we need some fields to store coordinates. Let me check what's would be the best solution here. |
Integrators needed a Community form widget that renders Mapbox from a JSON payload without vendoring GL JS or sharing Enterprise web_map's token field. Task 5602 Co-authored-by: Cursor <cursoragent@cursor.com>
a6d75e2 to
2c0eae1
Compare
Give integrators a runnable partner-form example of the Mapbox widget (draggable star, clickable child pins, Memmingen demo data) without shipping that onto the widget addon itself. Task 5602 Co-authored-by: Cursor <cursoragent@cursor.com>
2c0eae1 to
9c0a807
Compare
|
A demo module is added, also I have created a token and added it to the runboat. You can test in on the Memes LLC partner. |
|
/ocabot merge nobump |
|
This PR looks fantastic, let's merge it! |
|
@etobella The merge process could not be finalized, because command |
|
This PR has the |
|
@sbidoul could you please reserve the module name in pip? |
|
Name reserved
…On Wed, Sep 16, 2026 at 2:39 PM Ivan Sokolov ***@***.***> wrote:
*ivs-cetmix* left a comment (OCA/geospatial#478)
<#478 (comment)>
@sbidoul <https://github.com/sbidoul> could you please reserve the module
name in pip?
—
Reply to this email directly, view it on GitHub
<#478?email_source=notifications&email_token=AAFI625LQT3DEANHUZHFLUL5PKCWRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRZG42TKMRTGY3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5697552366>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFI62YKTER56F4E4E5OE5L5PKCWRAVCNFSNUABEKJSXA33TNF2G64TZHMZDAOBZGQYTIMB3JFZXG5LFHM2TGNBYGE4TMMBRGCQXMAQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
/ocabot merge nobump |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
@etobella The merge process could not be finalized, because command |
|
odoo_addon_web_widget_mapbox_demo registered too
|
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
@etobella The merge process could not be finalized, because command |

Summary
widget="mapbox"onfields.Json) that renders markers from a JSON payload with Mapbox GL JS loaded from the CDN (v3.30.0), not vendored.web_widget_mapbox.token/ sessionmapbox_token) so this addon can sit next to Enterpriseweb_mapwithout sharingmap_box_token.updated, Map/Satellite styles, zoom/pan/pitch/ fullscreen flags, and a popup form whenclickable+rec_model+rec_idare set.Test plan
web_widget_mapboxon Community 18.0.pk.token and save.<field name="…" widget="mapbox"/>on a Json field and confirm the map renders; computed non-stored Json still displays.default_centerwhen valid, else the first pin; zoom/pan/pitch/fullscreen followallow_*.editablemarker and confirmupdatedis upserted without rewritingelements.clickable+rec_model+rec_idand confirm a form dialog opens (not the main action stack).mapbox_token.NB: this code was written using AI-assistance (Cursor), however was checked manually from A to Z. Yup, AI is a reality, just need to keep it under control 😄
Some screenshots from the real project running in prod.


Task 5602