PB-324: Show layer info button without legend#734
Conversation
7b67750 to
a841b0e
Compare
Passing run #1347 ↗︎Details:
Review all test suite changes for PR #734 ↗︎ |
|||||||||||||||
a841b0e to
98c7531
Compare
|
|
||
| const hasChildren = computed(() => item.value?.layers?.length > 0) | ||
| const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasLegend) | ||
| const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasDescription) |
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
I can't think of a better name if we want to keep it short... So let's go with that 😉
fe63e3f to
a258ddb
Compare
|
|
||
| const hasChildren = computed(() => item.value?.layers?.length > 0) | ||
| const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasLegend) | ||
| const hasLegend = computed(() => canBeAddedToTheMap.value && item.value?.hasDescription) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
79c526e to
539999a
Compare
| * 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 |
There was a problem hiding this comment.
@pakb does there already exist a ticket for this or should this remain hard coded?
Test link