Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psp 9940 - correct issue with map display when jumping to boundaries #4648

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

devinleighsmith
Copy link
Collaborator

No description provided.

@devinleighsmith devinleighsmith added the bug Something isn't working label Feb 11, 2025
@devinleighsmith devinleighsmith self-assigned this Feb 11, 2025
@@ -168,9 +168,7 @@ const mapRequestStates = {
context?.mapFeatureData?.pimsLocationFeatures?.features ?? [];

// business logic, if there are file properties, use those, otherwise, zoom to a single feature if there is only one, or all features if there are more than one.
if (context.filePropertyLocations.length > 0) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unfortunately this logic doesn't work - as this method has no context who called it. As a result, efforts to send a fileProperties of [], result in the else clause of this function to be executed.

suggested solution - keep the file boundary logic separate from the map load/ map search logic.

Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/4648

Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/4648

@asanchezr asanchezr merged commit c3c001f into bcgov:dev Feb 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants