Bring leaflet.js librairy in odoo.
Project description
Leaflet Javascript Library
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. The plugin library is opensource and distributed under MIT Licence. See : https://github.com/Leaflet/Leaflet.markercluster/blob/master/MIT-LICENCE.txt.
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
you can contact one of the following companies : https://switch2osm.org/providers/
You can also install yourself your own tiles servers. See documentation : https://switch2osm.org/serving-tiles/
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
update the plugins
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
Contributors
Sylvain LE GAL (https://www.twitter.com/legalsylvain)
Other credits
The module embed:
the Leaflet.js library. (https://github.com/Leaflet/Leaflet)
the markercluster plugin. (https://github.com/Leaflet/Leaflet.markercluster)
Maintainers
This module is maintained by the OCA.
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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_web_leaflet_lib-18.0.1.1.0-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_web_leaflet_lib-18.0.1.1.0-py3-none-any.whl
- Upload date:
- Size: 196.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
831e1103a9b588c77bfd373a31977931e4e4a767a38a035ed7487c8f604c0dba
|
|
| MD5 |
3d6d083eb38c9ad749776c20614d4fc2
|
|
| BLAKE2b-256 |
c63f4f1755e8e77955f070fc4eac6d643139a2f7122c21f4e2716193e08ec29f
|