Skip to content

PB-324: Show layer info button without legend#734

Merged
LukasJoss merged 4 commits intodevelopfrom
feat-PB-324-show-layer-info-button-without-legend
Mar 27, 2024
Merged

PB-324: Show layer info button without legend#734
LukasJoss merged 4 commits intodevelopfrom
feat-PB-324-show-layer-info-button-without-legend

Conversation

@LukasJoss
Copy link
Contributor

@LukasJoss LukasJoss commented Mar 25, 2024

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend branch from 7b67750 to a841b0e Compare March 25, 2024 08:05
@cypress
Copy link

cypress bot commented Mar 25, 2024

Passing run #1347 ↗︎

0 166 22 0 Flakiness 0

Details:

PB-324: Set hasDescription to false for kml and gpx layers
Project: web-mapviewer Commit: 539999a24b
Status: Passed Duration: 04:50 💡
Started: Mar 27, 2024 10:56 AM Ended: Mar 27, 2024 11:01 AM

Review all test suite changes for PR #734 ↗︎

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend branch from a841b0e to 98c7531 Compare March 25, 2024 08:20
@LukasJoss LukasJoss requested a review from pakb March 25, 2024 10:04

const hasChildren = computed(() => item.value?.layers?.length > 0)
const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasLegend)
const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasDescription)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pakb is hasDescription a good variable name? In that case I should probably update all the variable names which referer to legend instead of description.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can't think of a better name if we want to keep it short... So let's go with that 😉

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend branch from fe63e3f to a258ddb Compare March 25, 2024 10:27

const hasChildren = computed(() => item.value?.layers?.length > 0)
const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasLegend)
const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasDescription)
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't think of a better name if we want to keep it short... So let's go with that 😉

layer.value.attributions.map((attribution) => attribution.name).join(', ')
)
const showLegendIcon = computed(() => layer.value.hasLegend)
const showLegendIcon = computed(() => layer.value.hasDescription)
Copy link
Contributor

Choose a reason for hiding this comment

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

We could maybe go all the way and rename this to showLayerDescriptionIcon and also rename the LayerLegendPopup to LayerDescriptionPopup so that we are thorough with our renaming

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend branch from 79c526e to 539999a Compare March 27, 2024 10:53
@LukasJoss LukasJoss merged commit a6d9b64 into develop Mar 27, 2024
@LukasJoss LukasJoss deleted the feat-PB-324-show-layer-info-button-without-legend branch March 27, 2024 11:02
* metadata) are still loading. Default is `false`
* @param {LayerTimeConfig | null} [layerData.timeConfig=null] Time series config (if
* available). Default is `null`
* @param {Boolean} [layerData.hasDescription=true] Define if this layer has a description that
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pakb does there already exist a ticket for this or should this remain hard coded?

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.

2 participants