From d2807f5986beec9f3779c15f018d5c5e72b4ee74 Mon Sep 17 00:00:00 2001 From: roman-stolar <88504352+roman-stolar@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:32:32 +0200 Subject: [PATCH] [OSDEV-1511] Map doesn't render properly on Dashboard / Geocoder and Settings / Embed pages (#453) [OSDEV-1511](https://opensupplyhub.atlassian.net/browse/OSDEV-1511) Map doesn't render properly on Dashboard / Geocoder and Settings / Embed pages - Updated google maps api version to 3.59 (3.51-3.55 not supported) [OSDEV-1511]: https://opensupplyhub.atlassian.net/browse/OSDEV-1511?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --- doc/release/RELEASE-NOTES.md | 1 + src/react/src/components/DashboardGeocoder.jsx | 2 +- src/react/src/components/FacilitiesMap.jsx | 2 +- src/react/src/components/VectorTileFacilitiesMap.jsx | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/release/RELEASE-NOTES.md b/doc/release/RELEASE-NOTES.md index 87d46054a..5341f2713 100644 --- a/doc/release/RELEASE-NOTES.md +++ b/doc/release/RELEASE-NOTES.md @@ -79,6 +79,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html * It was found that clearing OpenSearch indexes didn’t work properly because the templates weren’t cleared. After updating the index mappings within the index template files, the index template remained unchanged because only the indexes were deleted during deployment, not both the indexes and their templates. This caused conflicts and prevented developers' updates from being applied to the OpenSearch indexes. This issue has been fixed by adding additional requests to delete the appropriate index templates to the `clear_opensearch.sh.tpl` script, which is triggered when clearing OpenSearch during deployment to any environment. * [OSDEV-1482](https://opensupplyhub.atlassian.net/browse/OSDEV-1482) - The `GET api/v1/moderation-events/{moderation_id}` endpoint returns a single response instead of an array containing one item. +* [OSDEV-1511](https://opensupplyhub.atlassian.net/browse/OSDEV-1511) - Updated google maps api version to 3.59 for ReactLeafletGoogleLayer component (3.51 not supported). ### What's new * [OSDEV-1132](https://opensupplyhub.atlassian.net/browse/OSDEV-1132) - Added FE for the "thanks for submitting" screen when user submits production location's data. diff --git a/src/react/src/components/DashboardGeocoder.jsx b/src/react/src/components/DashboardGeocoder.jsx index 3e5c61010..bb3e63d60 100644 --- a/src/react/src/components/DashboardGeocoder.jsx +++ b/src/react/src/components/DashboardGeocoder.jsx @@ -175,7 +175,7 @@ function DashboardGeocoder({ countryOptions, fetchingOptions, getCountries }) { googleMapsLoaderConf={{ KEY: GOOGLE_CLIENT_SIDE_API_KEY, REGION: country.value || DEFAULT_COUNTRY_CODE, - VERSION: '3.51', + VERSION: '3.59', }} type="roadmap" continuousWorld diff --git a/src/react/src/components/FacilitiesMap.jsx b/src/react/src/components/FacilitiesMap.jsx index f66e0c025..5f25a9d2b 100644 --- a/src/react/src/components/FacilitiesMap.jsx +++ b/src/react/src/components/FacilitiesMap.jsx @@ -247,7 +247,7 @@ function FacilitiesMap({ googleMapsLoaderConf={{ KEY: GOOGLE_CLIENT_SIDE_API_KEY, REGION: DEFAULT_COUNTRY_CODE, - VERSION: '3.51', + VERSION: '3.59', }} type="roadmap" continuousWorld diff --git a/src/react/src/components/VectorTileFacilitiesMap.jsx b/src/react/src/components/VectorTileFacilitiesMap.jsx index 3aeca9b9f..cf5c30f1f 100644 --- a/src/react/src/components/VectorTileFacilitiesMap.jsx +++ b/src/react/src/components/VectorTileFacilitiesMap.jsx @@ -130,7 +130,7 @@ function VectorTileFacilitiesMap({ googleMapsLoaderConf={{ KEY: GOOGLE_CLIENT_SIDE_API_KEY, REGION: DEFAULT_COUNTRY_CODE, - VERSION: '3.51', + VERSION: '3.59', }} type="roadmap" styles={mapStyle === 'silver' ? SILVER_MAP_STYLE : null}