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.
@@ -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:b819c0e0d0b447189a53096676a3ce5eb62eb32e5dbeed12d05c5ab3a187d5f5
14
+ !! source digest: sha256:4e68900a79d923acb16260b8dded77558e5fbbba071b0ec253adef930e58c15c
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
- .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
17
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18
18
  :target: https://odoo-community.org/page/development-status
19
- :alt: Alpha
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
- |image2|
50
+ If user zooms out, the markers will overlap, which won't be very
51
+ visible.
49
52
 
50
- .. |image1| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_1.png
51
- .. |image2| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png
53
+ In that case, nearby markers are grouped together, thanks to
54
+ ``Leaflet.markercluster`` plugin.
55
+
56
+ |image2|
52
57
 
53
- .. IMPORTANT::
54
- This is an alpha version, the data model and design can change at any time without warning.
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.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
- ![](../static/description/view_res_partner_map_1.png)
11
+ A marker will be displayed for each item that has a localization.
12
+
13
+ ![](../static/description/view_res_partner_map_precise.png)
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
+ ![](../static/description/view_res_partner_map_large.png)
21
+
22
+
12
23
 
13
- ![](../static/description/view_res_partner_map_2.png)
@@ -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:b819c0e0d0b447189a53096676a3ce5eb62eb32e5dbeed12d05c5ab3a187d5f5
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="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
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&amp;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><img alt="image1" src="https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_1.png" /></p>
388
- <p><img alt="image2" src="https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png" /></p>
389
- <div class="admonition important">
390
- <p class="first admonition-title">Important</p>
391
- <p class="last">This is an alpha version, the data model and design can change at any time without warning.
392
- Only for development or testing purpose, do not use in production.
393
- <a class="reference external" href="https://odoo-community.org/page/development-status">More details on development status</a></p>
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.leafletFeatureGroup = null;
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.leafletFeatureGroup) {
153
- this.leafletMap.removeLayer(this.leafletFeatureGroup);
152
+ if (this.mainLayer) {
153
+ this.leafletMap.removeLayer(this.mainLayer);
154
154
  }
155
155
 
156
- this.leafletFeatureGroup = L.featureGroup().addTo(this.leafletMap);
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
- marker.addTo(this.leafletFeatureGroup);
160
+ this.mainLayer.addLayer(marker);
162
161
  }
163
162
  }
164
- const bounds = this.leafletFeatureGroup.getBounds();
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.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:b819c0e0d0b447189a53096676a3ce5eb62eb32e5dbeed12d05c5ab3a187d5f5
31
+ !! source digest: sha256:4e68900a79d923acb16260b8dded77558e5fbbba071b0ec253adef930e58c15c
33
32
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
33
 
35
- .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
34
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
36
35
  :target: https://odoo-community.org/page/development-status
37
- :alt: Alpha
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
- |image2|
67
+ If user zooms out, the markers will overlap, which won't be very
68
+ visible.
67
69
 
68
- .. |image1| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_1.png
69
- .. |image2| image:: https://raw.githubusercontent.com/OCA/geospatial/18.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png
70
+ In that case, nearby markers are grouped together, thanks to
71
+ ``Leaflet.markercluster`` plugin.
72
+
73
+ |image2|
70
74
 
71
- .. IMPORTANT::
72
- This is an alpha version, the data model and design can change at any time without warning.
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=kq8tmjmnL_RW85jL0D7i0QEJMGRONyCKdYq6cFgKA0g,7032
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=NQEcfUofTU7necxdAidm3Tr3rqsX8_gp4fqpwzbQdLY,1052
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=Ubg66tabR4lkMIhbfKTQqyl33dOHRLXlIgYe1ReZv_E,629
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=h1-cZFdpWwUWqkZ-bQ1Y2kFy1Y27G2LiywohmWtZBZI,20542
19
- odoo/addons/web_view_leaflet_map/static/description/res_partner_map.png,sha256=vyOw2l7n7k4-jYgTT-r31vA4h8kSnjMo0WW0iNEzRi4,390800
20
- odoo/addons/web_view_leaflet_map/static/src/components/map-component/map_view.esm.js,sha256=77rRNW5R5KokooVkKrgOjTCgbxYKK0owy10_02Nat4Y,10535
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.0.1.dist-info/METADATA,sha256=vXCHetE3w4r5zdAtU-KDf2gLaHHOyqYjBYcW5NCu3w8,7689
24
- odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
25
- odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
26
- odoo_addon_web_view_leaflet_map-18.0.1.0.1.dist-info/RECORD,,
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,,