Skip to content

Commit

Permalink
Merge branch 'release-4.8.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomarrocoli committed Jun 15, 2022
2 parents dc8920c + d3e82f4 commit bc8e8b8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 4.8.13
- Removed MPA download option
- Changed Mapbox basemap to most recent version
- Hid PA growth charts from country pages
- Changed PA text to include "and other effective area-based conservation measures"

### 4.8.12
- Removed Western Sahara flag
- Fixed French Guiana typo
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/marine_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def index
@marineSitesTotal = number_with_delimiter(ProtectedArea.marine_areas.count())
@marineViewAllUrl = search_areas_path(filters: {is_type: ['marine']})

@download_options = helpers.download_options(['csv', 'shp', 'gdb', 'mpa_map'], 'general', 'marine')
# Removed mpa_map from ['csv', 'shp', 'gdb', 'map_map'] in feat/hide-mpa-download-button
@download_options = helpers.download_options(['csv', 'shp', 'gdb'], 'general', 'marine')

@regionCoverage = Region.without_global.map do |region|
RegionPresenter.new(region).marine_coverage
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/components/map/default-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ export const BASELAYERS_DEFAULT = [
{
id: 'terrain',
name: 'Terrain',
style: 'mapbox://styles/unepwcmc/ckfy4y2nm0vqn19mkcmiyqo73'
style: 'mapbox://styles/unepwcmc/cko1hsfi50vog17l697cr4d6p'
},
{
id: 'satellite',
name: 'Satellite',
style: 'mapbox://styles/unepwcmc/ckfy4tzxq0vq719lgi34s2lad'
style: 'mapbox://styles/unepwcmc/ckniq2twg0q3b17s5gqfxhagf'
}
]
export const RTL_TEXT_PLUGIN_URL = 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js'
Expand Down
20 changes: 12 additions & 8 deletions app/javascript/components/pages/RegionCountryPages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,18 @@
}"
/>

<stats-growth
v-if="hasGrowth"
v-bind="{
chart: activeDatabase.growth.chart,
smallprint: activeDatabase.growth.smallprint,
title: activeDatabase.growth.title,
}"
/>
<!--
Growth chart hidden because calculation is incorrect
https://unep-wcmc.codebasehq.com/projects/protected-planet-support-and-maintenance/tickets/265
<stats-growth
v-if="hasGrowth"
v-bind="{
chart: activeDatabase.growth.chart,
smallprint: activeDatabase.growth.smallprint,
title: activeDatabase.growth.title,
}"
/>
-->

<slot name="related_countries" />

Expand Down
2 changes: 1 addition & 1 deletion config/locales/search/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ en:
site: Individual Areas
map: Map View
no-results: No results. Please search again.
protected-areas: Protected Areas
protected-areas: protected areas and other effective area-based conservation measures
results: results
search-areas-title: Explore protected areas and OECMs

0 comments on commit bc8e8b8

Please sign in to comment.