Skip to content

Commit

Permalink
Paint doest highlight in middle of geo (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaellaude authored Oct 22, 2024
1 parent 4d40488 commit 194a962
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/fly-deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
db_name="pr-${{ github.event.number }}-${{ github.repository_owner }}-${{ github.event.repository.name }}-db"
echo "Destroying app $app_name"
flyctl apps destroy "$app_name"
flyctl apps destroy "$app_name" -y
echo "Destroying frontend app $frontend_app_name"
flyctl apps destroy "$frontend_app_name"
flyctl apps destroy "$frontend_app_name" -y
echo "Destroying database $db_name"
flyctl postgres destroy "$db_name"
flyctl postgres destroy "$db_name" -y
echo "Resources for PR #${{ github.event.number }} have been destroyed."
env:
Expand Down
11 changes: 4 additions & 7 deletions app/src/app/utils/events/mapEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { ResetMapSelectState } from "@utils/events/handlers";
import {
INTERACTIVE_LAYERS,
BLOCK_HOVER_LAYER_ID,
BLOCK_LAYER_ID,
BLOCK_LAYER_ID_CHILD,
BLOCK_HOVER_LAYER_ID_CHILD,
} from "@constants/layers";

/*
Expand All @@ -26,8 +25,8 @@ MapEvent handling; these functions are called by the event listeners in the MapC
*/
function getLayerIdsToPaint(child_layer: string | undefined | null) {
return child_layer
? [BLOCK_LAYER_ID, BLOCK_LAYER_ID_CHILD]
: [BLOCK_LAYER_ID];
? [BLOCK_HOVER_LAYER_ID, BLOCK_HOVER_LAYER_ID_CHILD]
: [BLOCK_HOVER_LAYER_ID];
}

/**
Expand Down Expand Up @@ -164,9 +163,7 @@ export const handleMapZoomEnd = (
map: MapLibreMap | null,
) => {};

export const handleResetMapSelectState = (
map: MapLibreMap | null,
) => {
export const handleResetMapSelectState = (map: MapLibreMap | null) => {
const mapStore = useMapStore.getState();
const sourceLayer = mapStore.mapDocument?.parent_layer;
if (sourceLayer) {
Expand Down

0 comments on commit 194a962

Please sign in to comment.