Skip to content

Commit

Permalink
deegree#191 - enhanced copyright configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoltz committed Jun 30, 2016
1 parent 97164ec commit 6a512ac
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public MapService( ServiceConfigurationType conf, Workspace workspace, int updat
}
}
}
copyright = conf.getCopyright();
copyright = conf.getCopyright() != null ? conf.getCopyright().getText() : null;
}
getLegendHandler = new GetLegendHandler( this );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<sequence>
<element name="DefaultLayerOptions" type="wms:LayerOptionsType" minOccurs="0" />
<element name="ThemeId" type="string" minOccurs="0" maxOccurs="unbounded" />
<element name="Copyright" minOccurs="0" type="string" />
<element name="Copyright" minOccurs="0" type="wms:CopyrightType" />
</sequence>
</complexType>

Expand Down Expand Up @@ -150,6 +150,25 @@
</sequence>
</complexType>

<complexType name="CopyrightType">
<annotation>
<documentation>Configure a copyright displayed in GetMap responses. A text or image
(via relative or absolute file reference or http url) can be configured.
Furthermore the position of the copyright can be specified with OffsetX/OffsetY (default is 8/13).
Anchor point in the GetMap response as well as the text or image is the lower-left corner.</documentation>
</annotation>
<sequence>
<choice minOccurs="1">
<element name="Text" type="string" />
<element name="Image" type="string" />
</choice>
<sequence minOccurs="0">
<element name="OffsetX" type="int" minOccurs="1" />
<element name="OffsetY" type="int" minOccurs="1" />
</sequence>
</sequence>
</complexType>

<simpleType name="WMSVersionType">
<restriction base="string">
<enumeration value="1.1.1" />
Expand Down

0 comments on commit 6a512ac

Please sign in to comment.