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

Highway layer map popup enhancement | PSP-8332 #4230

Merged
merged 8 commits into from
Jul 29, 2024

Conversation

FuriousLlama
Copy link
Collaborator

Added Highway layer provider and types.
Updated map flyout to have a pagination for each source

@FuriousLlama FuriousLlama added the enhancement New feature or request label Jul 29, 2024
@FuriousLlama FuriousLlama self-assigned this Jul 29, 2024
Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

1 similar comment
Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

Comment on lines 91 to 94
setLayerPopup({
latlng: mapMachine.mapLocationFeatureDataset.location,
layers: layersData,
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see duplicated calls to "setLayerPopup()" here and later on line 112...
Given that we are already calling it in line 112 - could this call be removed?

},
MOTI_PLAN: { label: 'MOTI plan', display: (data: { [key: string]: any }) => data.MOTI_PLAN },
VETTING_STATUS: {
label: 'Venting Status',
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: venting -> vetting

},
SHAPE_TYPE: { label: 'Shape type', display: (data: { [key: string]: any }) => data.SHAPE_TYPE },
PENDING_CLASSIFICATION: {
label: 'Pending clasification',
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: clasification -> classification

Comment on lines 10 to 12
* API wrapper to centralize all AJAX requests to WFS endpoints for the pims property location.
* @returns Object containing functions to make requests to the WFS layer.
* Note: according to the view ISS_ProvincialPublicHighway
Copy link
Collaborator

Choose a reason for hiding this comment

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

"...WFS endpoints for the pims property location" -> "... for the highway layer locations"


import { ISS_ProvincialPublicHighway } from '../models/layers/pimsHighwayLayer';

const getFakeISSResult: () => FeatureCollection<Geometry, ISS_ProvincialPublicHighway> = () => ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: we have been calling these functions "getMock..." instead of "getFake..." - would appreciate keeping it consistent

Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

@FuriousLlama FuriousLlama merged commit 1f0c78d into bcgov:dev Jul 29, 2024
7 checks passed
@FuriousLlama FuriousLlama changed the title Highway layer map popup enhancement Highway layer map popup enhancement | PSP--8332 Aug 9, 2024
@FuriousLlama FuriousLlama changed the title Highway layer map popup enhancement | PSP--8332 Highway layer map popup enhancement | PSP-8332 Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants