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

Add featured marker to legend, show if we have a featured marker #183

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

Tehsurfer
Copy link
Contributor

@Tehsurfer Tehsurfer commented Nov 30, 2023

This uses the props from ABI-Software/flatmapvuer#122 to turn on the featured marker in legend if we have a featured marker and off if not

@Tehsurfer Tehsurfer changed the title Add featured marker to legend show if we have a featured marker Add featured marker to legend, show if we have a featured marker Nov 30, 2023
@@ -270,7 +272,13 @@ export default {
const markerIdentifier =
store.state.settings.featuredMarkerIdentifiers[index];
if (!markerIdentifier) {
this.addFeaturedMarker(markers[index], index, flatmap);
let markerExists = this.addFeaturedMarker(markers[index], index, flatmap);
Copy link
Member

@alan-wu alan-wu Nov 30, 2023

Choose a reason for hiding this comment

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

We want to set showStarInLegend to true as long as there is a valid marker. The current implementation will fail if the first few markers are valid and the last one is not.

Copy link
Member

@alan-wu alan-wu left a comment

Choose a reason for hiding this comment

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

Works well, thanks.

@alan-wu alan-wu merged commit 3d91200 into ABI-Software:main Nov 30, 2023
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants