From e0f5f3dab5705207c7fd14955a1d2bafe2923820 Mon Sep 17 00:00:00 2001 From: Ken <62271587+kennethliporada@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:11:15 +0800 Subject: [PATCH] fix(landslide): unstable slope tab (#417) * Added github actions workflow for aut deployment to .72 server. * Added github action for S3 deployment. * Changed to staging. Created branch for staging. * Retrigger deployment workflow. * fix(studio): zoom in on ios (#192) # Summary - Fixes https://github.com/UPRI-NOAH/noah-frontend/issues/186 - The `load` event isn't firing on NOAH Studio. As such, the `centerListener()` method isn't called which is responsible for the zooming in to the selected place. However, `style.load` do get called. The fix implemented here is to also use the event `style.load` to call the methods that were previously called by upon the firing of the `load` event but only listen to `style.load` once. - We need to further investigate **why** `load` doesn't work on Studio in iOS but works in KYH - Confirming that only the NOAH Studio is affected by this issue. # Demo ![Kapture 2021-10-05 at 22 49 45](https://user-images.githubusercontent.com/11599005/136047077-d0da7a85-9157-4d01-bae9-07a6039fd9c1.gif) * ci(netlify): add _redirects file * S3 Deployment Validation (#198) * Added if condition to run workflow only on successful PR merge. (#195) * Checking proper automation workflow. Will revert this small change upon validation. (#196) * Change deployment trigger. Revert small biblio change. (#199) * Checking proper automation workflow. Will revert this small change upon validation. * Changed trigger for deployment workflow. Revert small change to bibliography. * Cascade dev changes on workflow to prod (#202) * Added AWS deployment workflow * hide unstable slope * remove kyh combined tileset from console log --------- Co-authored-by: pfgoting Co-authored-by: Jadurani Davalos Co-authored-by: kennethbeoliporada --- src/app/shared/data/kyh_combined_tileset.json | 10 +--------- src/app/shared/mocks/hazard-types-and-levels.ts | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/app/shared/data/kyh_combined_tileset.json b/src/app/shared/data/kyh_combined_tileset.json index 67ef2010..7c9a64c0 100644 --- a/src/app/shared/data/kyh_combined_tileset.json +++ b/src/app/shared/data/kyh_combined_tileset.json @@ -47,15 +47,7 @@ }, { "url": "mapbox://upri-noah.ph_lh_lh2_tls", - "sourceLayer": [ - "ph_lh_af", - "ph_lh_df", - "albay_lh_df", - "aurora_lh_df", - "leyte_lh_df", - "kusiong_lh_df", - "southcotabato_lh_df" - ] + "sourceLayer": ["ph_lh_af", "ph_lh_df"] }, { "url": "mapbox://upri-noah.ph_lh_lh3_tls", diff --git a/src/app/shared/mocks/hazard-types-and-levels.ts b/src/app/shared/mocks/hazard-types-and-levels.ts index b7b15b91..dd4bf8c6 100644 --- a/src/app/shared/mocks/hazard-types-and-levels.ts +++ b/src/app/shared/mocks/hazard-types-and-levels.ts @@ -67,7 +67,7 @@ export const LANDSLIDE_HAZARD_TYPES = [ LANDSLIDE, // ALLUVIAL_FAN, DEBRIS_FLOW, - UNSTABLE_SLOPES, + //UNSTABLE_SLOPES, ]; export const STORM_SURGE_HAZARD_LEVELS = [SSA1, SSA2, SSA3, SSA4];