-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
143 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,12 +218,13 @@ | |
<!-- ORIGINAL SOURCE: src/components/[email protected] --> | ||
<!-- ORIGINAL SOURCE: src/components/[email protected] --> | ||
<div | ||
v-if = "'tab' === legend_position" | ||
v-if = "'tab' === legend_position && 'legend' === activeTab" | ||
v-for = "tree in state.layerstrees" | ||
:key = "tree.id" | ||
role = "tabpanel" | ||
id = "legend" | ||
class = "tab-pane" | ||
:style = "{ backgroundColor: backgroundLegend }" | ||
:class = "{ active: 'legend' === activeTab }" | ||
> | ||
<div v-for = "t in tree.tree" class = "legend-item"> <!-- TODO: check if such nesting level really necessary.. --> | ||
|
@@ -317,6 +318,7 @@ export default { | |
legend_position: ApplicationState.project.state.legend_position || 'tab', | ||
iframe: ApplicationState.iframe, | ||
showlegend: false, | ||
backgroundLegend: ApplicationState.gui.layout.app.legend && ApplicationState.gui.layout.app.legend.transparent ? 'transparent' : '#FFFFFF', //@since 3.11.3 set transparent or white background | ||
currentBaseLayer: null, | ||
activeTab: 'layers', | ||
loading: false, | ||
|
@@ -367,13 +369,13 @@ export default { | |
|
||
methods: { | ||
|
||
onLegendError(legendurl) { | ||
legendurl.error = true; | ||
legendurl.loading = false; | ||
onLegendError(url) { | ||
url.error = true; | ||
url.loading = false; | ||
}, | ||
|
||
onLegendLoad(legendurl) { | ||
legendurl.loading = false; | ||
onLegendLoad(url) { | ||
url.loading = false; | ||
}, | ||
|
||
/** | ||
|
@@ -519,12 +521,9 @@ export default { | |
} catch (e) { | ||
console.warn(e); | ||
} | ||
|
||
obj.loading = false; | ||
} | ||
} | ||
|
||
return legendurls; | ||
return legendurls; | ||
}, | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters