Wednesday, May 15, 2024
1 change · saas-17.2
Enhancements to existing features
Website maps can now load partner locations using saved search criteria instead of very long lists of individual records, preventing crashes from oversized URLs. Maps also load more efficiently and zoom to show relevant markers, giving visitors a clearer location view.
Original PR description
This improvement enables the provision of a key that should match the key from the dict returned by _get_gmap_domains. It allows to obtain the domain of res.partner for the search, instead to have a long list of IDs. Previously, we had to provide all IDs one by one, resulting in a lengthy URL that led to crashes. Simultaneously, we have enhanced the map's zoom functionality to center the point on the map and display all markers. Previously, the map would display the world map even if you only had markers in a small area, such as a specific country. After this commit: - all partners (limited to 1000) are shown and not only the partners from the first page. - demo data has been cleaned, duplicate removed, lat/lont added, ... - iframe is now lazy loaded, to avoid extra read while not clicked on the map view. - limited to 80 by default, overridable in url with limit (1000 in this case)