TIP: You can type at any time to perform a new search.
Leaflet Map View (OpenStreetMap)
web_view_leaflet_map · OCA/geospatial
- Repository
- OCA/geospatial · module folder · Try on Runboat
- Module version
- 1.1.2
- Category
- Extra Tools
- Folder size
- 0.32 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/geospatial
- Last tracking update
- 2026-08-07 08:42:57
- Authors
- Odoo Community Association (OCA), GRAP
- Maintainers
- Odoo Community Association (OCA), GRAP
- Committers
- Sylvain LE GAL, Weblate, OCA-git-bot, Mourad, oca-ci, Thibault Rey
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- route_planning, web_view_leaflet_map_partner
- Description
This module extends odoo views, to add a new kind of view, named `leaflet_map` that is using the Leaflet javascript library to use maps. (<https://leafletjs.com/>) This library is for exemple, used in the OpenStreetMap project. (<https://www.openstreetmap.org/>) You can see a simple usage in the module `web_view_leaflet_map_partner` in the same OCA repository that displays your contact in a map, if latitude and longitude are defined. (To define latitude and longitude, refer to the Odoo module `base_geolocalize`) A marker will be displayed for each item that has a localization.  If user zooms out, the markers will overlap, which won't be very visible. In that case, nearby markers are grouped together, thanks to `Leaflet.markercluster` plugin. 
Code Analysis ⓘ
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
view_modeSelectionondelete={'leaflet_map': 'cascade'}selection_add=[('leaflet_map', 'Leaflet Map')]
No public methods.
New fields (1)
-
typeSelectionselection_add=[('leaflet_map', 'Leaflet Map')]
No public methods.
New fields (0)
No new fields.
Public methods (1)-
get_default_leaflet_position(self, model_name)@api.model
Loading…
Loading…