odoo-addon-web-view-leaflet-map 18.0.1.0.1__py3-none-any.whl → 18.0.1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/web_view_leaflet_map/README.rst +13 -10
- odoo/addons/web_view_leaflet_map/__manifest__.py +1 -2
- odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.md +12 -2
- odoo/addons/web_view_leaflet_map/static/description/index.html +9 -10
- odoo/addons/web_view_leaflet_map/static/description/res_partner_large.png +0 -0
- odoo/addons/web_view_leaflet_map/static/description/res_partner_precise.png +0 -0
- odoo/addons/web_view_leaflet_map/static/src/components/map-component/map_view.esm.js +9 -7
- {odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info → odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info}/METADATA +14 -12
- {odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info → odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info}/RECORD +11 -10
- odoo/addons/web_view_leaflet_map/static/description/res_partner_map.png +0 -0
- {odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info → odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info}/WHEEL +0 -0
- {odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info → odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -11,12 +11,12 @@ Leaflet Map View (OpenStreetMap)
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:4e68900a79d923acb16260b8dded77558e5fbbba071b0ec253adef930e58c15c
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
|
-
.. |badge1| image:: https://img.shields.io/badge/maturity-
|
|
17
|
+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
18
18
|
:target: https://odoo-community.org/page/development-status
|
|
19
|
-
:alt:
|
|
19
|
+
:alt: Beta
|
|
20
20
|
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
21
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
22
22
|
:alt: License: AGPL-3
|
|
@@ -43,17 +43,20 @@ displays your contact in a map, if latitude and longitude are defined.
|
|
|
43
43
|
(To define latitude and longitude, refer to the Odoo module
|
|
44
44
|
``base_geolocalize``)
|
|
45
45
|
|
|
46
|
+
A marker will be displayed for each item that has a localization.
|
|
47
|
+
|
|
46
48
|
|image1|
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
If user zooms out, the markers will overlap, which won't be very
|
|
51
|
+
visible.
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
In that case, nearby markers are grouped together, thanks to
|
|
54
|
+
``Leaflet.markercluster`` plugin.
|
|
55
|
+
|
|
56
|
+
|image2|
|
|
52
57
|
|
|
53
|
-
..
|
|
54
|
-
|
|
55
|
-
Only for development or testing purpose, do not use in production.
|
|
56
|
-
`More details on development status <https://odoo-community.org/page/development-status>`_
|
|
58
|
+
.. |image1| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_precise.png
|
|
59
|
+
.. |image2| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_large.png
|
|
57
60
|
|
|
58
61
|
**Table of contents**
|
|
59
62
|
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
{
|
|
6
6
|
"name": "Leaflet Map View (OpenStreetMap)",
|
|
7
7
|
"summary": "Add new 'leaflet_map' view, to display markers.",
|
|
8
|
-
"version": "18.0.1.
|
|
9
|
-
"development_status": "Alpha",
|
|
8
|
+
"version": "18.0.1.1.1",
|
|
10
9
|
"author": "GRAP, Odoo Community Association (OCA)",
|
|
11
10
|
"maintainers": ["legalsylvain"],
|
|
12
11
|
"website": "https://github.com/OCA/geospatial",
|
|
@@ -8,6 +8,16 @@ in the same OCA repository that displays your contact in a map, if
|
|
|
8
8
|
latitude and longitude are defined. (To define latitude and longitude,
|
|
9
9
|
refer to the Odoo module `base_geolocalize`)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
A marker will be displayed for each item that has a localization.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
If user zooms out, the markers will overlap, which won't be very visible.
|
|
16
|
+
|
|
17
|
+
In that case, nearby markers are grouped together, thanks to
|
|
18
|
+
`Leaflet.markercluster` plugin.
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
|
|
12
23
|
|
|
13
|
-

|
|
@@ -372,9 +372,9 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:4e68900a79d923acb16260b8dded77558e5fbbba071b0ec253adef930e58c15c
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
|
-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="
|
|
377
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/geospatial/tree/18.0/web_view_leaflet_map"><img alt="OCA/geospatial" src="https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/geospatial-18-0/geospatial-18-0-web_view_leaflet_map"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>This module extends odoo views, to add a new kind of view, named
|
|
379
379
|
<tt class="docutils literal">leaflet_map</tt> that is using the Leaflet javascript library to use
|
|
380
380
|
maps. (<a class="reference external" href="https://leafletjs.com/">https://leafletjs.com/</a>) This library is for exemple, used in the
|
|
@@ -384,14 +384,13 @@ OpenStreetMap project. (<a class="reference external" href="https://www.openstre
|
|
|
384
384
|
displays your contact in a map, if latitude and longitude are defined.
|
|
385
385
|
(To define latitude and longitude, refer to the Odoo module
|
|
386
386
|
<tt class="docutils literal">base_geolocalize</tt>)</p>
|
|
387
|
-
<p
|
|
388
|
-
<p><img alt="
|
|
389
|
-
<
|
|
390
|
-
|
|
391
|
-
<p
|
|
392
|
-
|
|
393
|
-
<
|
|
394
|
-
</div>
|
|
387
|
+
<p>A marker will be displayed for each item that has a localization.</p>
|
|
388
|
+
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_precise.png" /></p>
|
|
389
|
+
<p>If user zooms out, the markers will overlap, which won’t be very
|
|
390
|
+
visible.</p>
|
|
391
|
+
<p>In that case, nearby markers are grouped together, thanks to
|
|
392
|
+
<tt class="docutils literal">Leaflet.markercluster</tt> plugin.</p>
|
|
393
|
+
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_large.png" /></p>
|
|
395
394
|
<p><strong>Table of contents</strong></p>
|
|
396
395
|
<div class="contents local topic" id="contents">
|
|
397
396
|
<ul class="simple">
|
|
@@ -40,7 +40,7 @@ export class MapRenderer extends Component {
|
|
|
40
40
|
parseInt(archAttrs.marker_popup_anchor_y?.value, 10) || -32;
|
|
41
41
|
|
|
42
42
|
this.leafletMap = null;
|
|
43
|
-
this.
|
|
43
|
+
this.mainLayer = null;
|
|
44
44
|
|
|
45
45
|
onWillStart(async () => {
|
|
46
46
|
await this.initDefaultPosition();
|
|
@@ -149,22 +149,24 @@ export class MapRenderer extends Component {
|
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
if (this.
|
|
153
|
-
this.leafletMap.removeLayer(this.
|
|
152
|
+
if (this.mainLayer) {
|
|
153
|
+
this.leafletMap.removeLayer(this.mainLayer);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
this.
|
|
157
|
-
|
|
156
|
+
this.mainLayer = L.markerClusterGroup();
|
|
158
157
|
for (const record of this.records) {
|
|
159
158
|
const marker = this.prepareMarker(record);
|
|
160
159
|
if (marker) {
|
|
161
|
-
|
|
160
|
+
this.mainLayer.addLayer(marker);
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
|
-
const bounds = this.
|
|
163
|
+
const bounds = this.mainLayer.getBounds();
|
|
165
164
|
if (bounds.isValid()) {
|
|
165
|
+
// Adapt the map's position based on the map's points
|
|
166
166
|
this.leafletMap.fitBounds(bounds.pad(0.1));
|
|
167
167
|
}
|
|
168
|
+
|
|
169
|
+
this.leafletMap.addLayer(this.mainLayer);
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-web_view_leaflet_map
|
|
3
|
-
Version: 18.0.1.
|
|
3
|
+
Version: 18.0.1.1.1
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-web_leaflet_lib==18.0.*
|
|
6
6
|
Requires-Dist: odoo==18.0.*
|
|
@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python
|
|
|
13
13
|
Classifier: Framework :: Odoo
|
|
14
14
|
Classifier: Framework :: Odoo :: 18.0
|
|
15
15
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
16
|
-
Classifier: Development Status :: 3 - Alpha
|
|
17
16
|
Description-Content-Type: text/x-rst
|
|
18
17
|
|
|
19
18
|
.. image:: https://odoo-community.org/readme-banner-image
|
|
@@ -29,12 +28,12 @@ Leaflet Map View (OpenStreetMap)
|
|
|
29
28
|
!! This file is generated by oca-gen-addon-readme !!
|
|
30
29
|
!! changes will be overwritten. !!
|
|
31
30
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
!! source digest: sha256:
|
|
31
|
+
!! source digest: sha256:4e68900a79d923acb16260b8dded77558e5fbbba071b0ec253adef930e58c15c
|
|
33
32
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
34
33
|
|
|
35
|
-
.. |badge1| image:: https://img.shields.io/badge/maturity-
|
|
34
|
+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
36
35
|
:target: https://odoo-community.org/page/development-status
|
|
37
|
-
:alt:
|
|
36
|
+
:alt: Beta
|
|
38
37
|
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
39
38
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
40
39
|
:alt: License: AGPL-3
|
|
@@ -61,17 +60,20 @@ displays your contact in a map, if latitude and longitude are defined.
|
|
|
61
60
|
(To define latitude and longitude, refer to the Odoo module
|
|
62
61
|
``base_geolocalize``)
|
|
63
62
|
|
|
63
|
+
A marker will be displayed for each item that has a localization.
|
|
64
|
+
|
|
64
65
|
|image1|
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
If user zooms out, the markers will overlap, which won't be very
|
|
68
|
+
visible.
|
|
67
69
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
In that case, nearby markers are grouped together, thanks to
|
|
71
|
+
``Leaflet.markercluster`` plugin.
|
|
72
|
+
|
|
73
|
+
|image2|
|
|
70
74
|
|
|
71
|
-
..
|
|
72
|
-
|
|
73
|
-
Only for development or testing purpose, do not use in production.
|
|
74
|
-
`More details on development status <https://odoo-community.org/page/development-status>`_
|
|
75
|
+
.. |image1| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_precise.png
|
|
76
|
+
.. |image2| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_large.png
|
|
75
77
|
|
|
76
78
|
**Table of contents**
|
|
77
79
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/web_view_leaflet_map/README.rst,sha256=
|
|
1
|
+
odoo/addons/web_view_leaflet_map/README.rst,sha256=JpqxKDethJtlWnw0NBBPurLofAzhYLXhquHIP0oyMSk,7006
|
|
2
2
|
odoo/addons/web_view_leaflet_map/__init__.py,sha256=lHbcD_3Jhk02gKyANjQ1Bif8uknO8qLtRSK4lJNPeeQ,55
|
|
3
|
-
odoo/addons/web_view_leaflet_map/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/web_view_leaflet_map/__manifest__.py,sha256=8hBKvJcbEb1s5PVyaMry0TYxSVwcXFN2Nrjw0rJaXLo,1017
|
|
4
4
|
odoo/addons/web_view_leaflet_map/hooks.py,sha256=VWhMUWedPCg8oZxqJCladNBaU9NvJMBJI6BlYKXNcEM,685
|
|
5
5
|
odoo/addons/web_view_leaflet_map/i18n/fr.po,sha256=xSXoIxogfegwOztumHeW5R4xxUooxHsDPCcoqQEgm0k,2102
|
|
6
6
|
odoo/addons/web_view_leaflet_map/i18n/it.po,sha256=RjAJVMbLRt2eJZ-YG2gb_yGGEfB9idHfZZt7Y_ehU0Y,1761
|
|
@@ -11,16 +11,17 @@ odoo/addons/web_view_leaflet_map/models/ir_ui_view.py,sha256=6K_zmkC44ymIDNycqo2
|
|
|
11
11
|
odoo/addons/web_view_leaflet_map/models/res_users.py,sha256=SmYcwiVXifiT8pDlb1pdAYnlvnodZ8oOrJHr6GQlle4,545
|
|
12
12
|
odoo/addons/web_view_leaflet_map/readme/CONFIGURE.md,sha256=X0jv_nRhCoSaQ3ZqwOqr8g03pGHv-elXfhX6gIN4ilg,53
|
|
13
13
|
odoo/addons/web_view_leaflet_map/readme/CONTRIBUTORS.md,sha256=MBsB-NNU4QMO7gTa_ZRympiiIQwyMPYqq4M3-PbwbHM,58
|
|
14
|
-
odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.md,sha256=
|
|
14
|
+
odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.md,sha256=D2_dBJqIgPwUWBL-JnqAXh8LezKNEup1nPB9v10-RBo,878
|
|
15
15
|
odoo/addons/web_view_leaflet_map/readme/DEVELOP.md,sha256=kiVt9qT6SC6Uh9fY0qqSpaI9HSeC67Ppi0b7O7iGPfg,1968
|
|
16
16
|
odoo/addons/web_view_leaflet_map/readme/ROADMAP.md,sha256=PuCMzJS_OKS0w9YBe1r4k3sIJnuvhcrS7qiuUwzwBzk,499
|
|
17
17
|
odoo/addons/web_view_leaflet_map/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
18
|
-
odoo/addons/web_view_leaflet_map/static/description/index.html,sha256=
|
|
19
|
-
odoo/addons/web_view_leaflet_map/static/description/
|
|
20
|
-
odoo/addons/web_view_leaflet_map/static/
|
|
18
|
+
odoo/addons/web_view_leaflet_map/static/description/index.html,sha256=_13t6kXLHcuT66fMAp7nwV2AC3pE_ZG1QpLVvVxRbfk,20445
|
|
19
|
+
odoo/addons/web_view_leaflet_map/static/description/res_partner_large.png,sha256=ykj5NK-6ofbXgCzXUmGZfobtgVok8DnElDonvBD2e-o,85248
|
|
20
|
+
odoo/addons/web_view_leaflet_map/static/description/res_partner_precise.png,sha256=4A1yh0S4NpUWTw6VIzI4zC9JcWomc2TO9_9FpsSkGhs,493740
|
|
21
|
+
odoo/addons/web_view_leaflet_map/static/src/components/map-component/map_view.esm.js,sha256=AzUK9DCne_fC9DO4hyPQNsO9yQVDLI7CT_Gl-SGyUiU,10577
|
|
21
22
|
odoo/addons/web_view_leaflet_map/static/src/components/map-component/map_view.xml,sha256=bVHRZOFSKUDKBybx0BzZRgwgJh7DvlKtsMI2fNhrqrc,586
|
|
22
23
|
odoo/addons/web_view_leaflet_map/static/src/components/map-component/web_view_leaflet_map.css,sha256=Tp3SfDNuSPCN32sh_HlSmiF3AYWlvxlzSp8u3NCAHiA,1527
|
|
23
|
-
odoo_addon_web_view_leaflet_map-18.0.1.
|
|
24
|
-
odoo_addon_web_view_leaflet_map-18.0.1.
|
|
25
|
-
odoo_addon_web_view_leaflet_map-18.0.1.
|
|
26
|
-
odoo_addon_web_view_leaflet_map-18.0.1.
|
|
24
|
+
odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info/METADATA,sha256=ogaBDEQ06ofCmIxBm9uDPaH51aIp13bqRvg0a1FTFqU,7619
|
|
25
|
+
odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
26
|
+
odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
27
|
+
odoo_addon_web_view_leaflet_map-18.0.1.1.1.dist-info/RECORD,,
|
|
Binary file
|
|
File without changes
|