Skip to content

PB-482: Elevation profile not updated when moved#821

Merged
pakb merged 3 commits intodevelopfrom
feat-PB-482-elevation-profile-not-updated-when-moved
May 6, 2024
Merged

PB-482: Elevation profile not updated when moved#821
pakb merged 3 commits intodevelopfrom
feat-PB-482-elevation-profile-not-updated-when-moved

Conversation

@LukasJoss
Copy link
Contributor

@LukasJoss LukasJoss commented May 3, 2024

@LukasJoss LukasJoss requested review from ltkum, ltshb and pakb and removed request for pakb May 3, 2024 15:26
@cypress
Copy link

cypress bot commented May 3, 2024

Passing run #2037 ↗︎

0 160 20 0 Flakiness 0

Details:

PB-482 : move profile geometry update to features store
Project: web-mapviewer Commit: d051c31214
Status: Passed Duration: 05:23 💡
Started: May 6, 2024 6:21 AM Ended: May 6, 2024 6:27 AM

Review all test suite changes for PR #821 ↗︎

@LukasJoss LukasJoss force-pushed the feat-PB-482-elevation-profile-not-updated-when-moved branch from ed5e30f to 2af977d Compare May 3, 2024 15:36
@LukasJoss LukasJoss force-pushed the feat-PB-482-elevation-profile-not-updated-when-moved branch from 2af977d to 1780d61 Compare May 3, 2024 15:38
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small improvement here

Comment on lines +105 to +110
if (
storeFeature.geometry.type === 'Polygon' ||
storeFeature.geometry.type === 'LineString'
) {
store.dispatch('setProfileFeature', { feature: storeFeature, ...dispatcher })
}
Copy link
Contributor

@pakb pakb May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd maybe move that to features.store.js changeFeatureGeometry action where there's already a canFeatureShowProfile() helper function that could be used to check for geometry type,
and so that it is triggered whenever the geometry changes (not only through this modify interaction)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Lukas is "under the flags" for the foreseeable month, I'll do the change myself

as there's already a helper function there to decide if the geometry is profile able/worthy
@pakb pakb merged commit 5cd8911 into develop May 6, 2024
@pakb pakb deleted the feat-PB-482-elevation-profile-not-updated-when-moved branch May 6, 2024 07:55
@cypress cypress bot mentioned this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants