Skip to main content

Bring leaflet.js librairy in odoo.

Project description

Odoo Community Association

Leaflet Javascript Library

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

This module extends odoo to include Leaflet Javacript library.

This module is used by web_view_leaflet_map.

Important Note

The javascript library is opensource and distributed under BSD 2 Licence. See : https://github.com/Leaflet/Leaflet/blob/main/LICENSE You can so use it freely.

However, display maps requires to display layers provided by tiles servers, that requires ressources.

For testing purpose

You can use the openStreetMap url https://tile.openstreetmap.org/{z}/{x}/{y}.png or other, listed in that page : https://wiki.openstreetmap.org/wiki/Tile_servers

Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use.

Regular / High Usage

Library Update

For the time being, the module embed the lealflet.js library version 1.9.4 ( released on May 18, 2023.)

If a new release is out:

  • please download it here https://leafletjs.com/download.html

  • update the javascript, css and images, present in the folder static/lib/leaflet

  • test the features

  • make a Pull Request

Table of contents

Configuration

  • Go to Settings > Technical > Parameters > System Parameters

  • Create or edit the parameter with the key leaflet.tile_url

  • As a value, set the url of the tiles server you chose. (See description)

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

  • GRAP

Contributors

Other credits

The module embed the Leaflet.js library.

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.

Current maintainer:

legalsylvain

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_addon_web_leaflet_lib-18.0.1.0.2-py3-none-any.whl (174.3 kB view details)

Uploaded Python 3

File details

Details for the file odoo_addon_web_leaflet_lib-18.0.1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_web_leaflet_lib-18.0.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6884759e44dea47b175815fc59a94be873ca5f3bf7e8891d73555a85345450bd
MD5 048555b7ca9ab41e0703b387003804d2
BLAKE2b-256 29362e1c0d7ec0ef4493f7db2aaa3de7a91764da6f2d2a61a13ca9a4cf4ee5d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page