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
OCA/geospatial:
odoo/odoo:
- web
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.

![](../static/description/view_res_partner_map_precise.png)

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.

![](../static/description/view_res_partner_map_large.png)

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_mode Selection
    ondelete={'leaflet_map': 'cascade'} selection_add=[('leaflet_map', 'Leaflet Map')]
Public methods (0)

No public methods.

New fields (1)
  • type Selection
    selection_add=[('leaflet_map', 'Leaflet Map')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_default_leaflet_position(self, model_name)
    @api.model

Loading…

Loading…