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

Configure legend graphis for group layers #1394

Closed
lgoltz opened this issue Sep 21, 2022 · 1 comment · Fixed by #1478
Closed

Configure legend graphis for group layers #1394

lgoltz opened this issue Sep 21, 2022 · 1 comment · Fixed by #1478
Labels
enhancement enhancement or improvement schema change change to deegree configuration files

Comments

@lgoltz
Copy link
Contributor

lgoltz commented Sep 21, 2022

For group layers a legend graphic should be configurable. The legend graphic can be referenced as local file or remote URL.

Enhancement Themes configuration (proposal):

<?xml version="1.0"?>
<Themes xmlns="http://www.deegree.org/themes/standard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.deegree.org/themes/standard themes.xsd" xmlns:d="http://www.deegree.org/metadata/description">

  <LayerStoreId>example</LayerStoreId>

  <Theme>
    <d:Title>root</d:Title>
    <Theme>
      <Identifier>single</Identifier>
      <d:Title>single</d:Title>
      <Layer layerStore='example'>zipcodes</Layer>
    </Theme>
    <Theme>
      <Identifier>grouplayer</Identifier>
      <d:Title>grouplayer</d:Title>
      <LegendGraphic>grouplayer_legend.png</LegendGraphic>
      <Layer layerStore='example'>layer1</Layer>
      <Layer layerStore='example'>layer2</Layer>
    </Theme>
    <Theme>
      <Identifier>grouplayercomplex</Identifier>
      <d:Title>grouplayercomplex</d:Title>
      <LegendGraphic>https://example.de/grouplayercomplex_legend.png</LegendGraphic>
      <Theme>
        <Identifier>sublayer1</Identifier>
        <d:Title>sublayer1</d:Title>
        <Layer layerStore='example'>sublayer1</Layer>
      </Theme>
      <Theme>
        <Identifier>sublayer2</Identifier>
        <d:Title>sublayer2</d:Title>
        <Layer layerStore='example'>sublayer2</Layer>
      </Theme>
    </Theme>
    
  </Theme>

</Themes>
@tfr42 tfr42 added enhancement enhancement or improvement schema change change to deegree configuration files labels Oct 19, 2022
@tfr42
Copy link
Member

tfr42 commented Nov 2, 2022

The TMC members have seen the config example and consider this extension as reasonable.

lgoltz added a commit to lat-lon/deegree3 that referenced this issue Nov 29, 2022
lgoltz added a commit to lat-lon/deegree3 that referenced this issue Jan 10, 2023
lgoltz added a commit to lat-lon/deegree3 that referenced this issue Jan 10, 2023
lgoltz added a commit to lat-lon/deegree3 that referenced this issue Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement or improvement schema change change to deegree configuration files
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants