347 | | |
348 | | |
| 347 | == Addendum 2 == |
| 348 | |
| 349 | After some usage of the !PrintLayout schema, several modifications will be required to ensure the correct definition and usage of the types contained within: |
| 350 | |
| 351 | The updated schema elemnts are as follows: |
| 352 | |
| 353 | === !PlatformCommon-1.1.0.xsd === |
| 354 | |
| 355 | The Red, Green, Blue and Alpha components of a Color definition should be defined as integers not doubles. |
| 356 | |
| 357 | {{{ |
| 358 | <xs:complexType name="ColorType"> |
| 359 | <xs:sequence> |
| 360 | <xs:element name="Red" type="xs:integer" default="0"/> |
| 361 | <xs:element name="Green" type="xs:integer" default="0"/> |
| 362 | <xs:element name="Blue" type="xs:integer" default="0"/> |
| 363 | <xs:element name="Alpha" type="xs:integer" default="0"/> |
| 364 | </xs:sequence> |
| 365 | </xs:complexType> |
| 366 | }}} |
| 367 | |
| 368 | === !PrintLayoutDefinition-2.0.0.xsd === |
| 369 | |
| 370 | The '''!VisibleLayerNames''' property of !MapViewportDefinitionType wil be renamed to '''!HiddenLayerNames'''. In this manner, in applications where a large number of layers exist, the definition will only have to specify the layers that are to be hidden in the viewport. This is generally the shorter list and will help reduce processing time and document size. |
| 371 | |
| 372 | {{{ |
| 373 | <xs:complexType name="MapViewportDefinitionType"> |
| 374 | <xs:annotation> |
| 375 | <xs:documentation>Defines how a map viewport is incorporated into a print layout.</xs:documentation> |
| 376 | </xs:annotation> |
| 377 | <xs:complexContent> |
| 378 | <xs:extension base="PrintLayoutElementDefinitionBaseType"> |
| 379 | <xs:sequence> |
| 380 | <xs:element name="MapName" type="xs:string" default="" minOccurs="0"> |
| 381 | <xs:annotation> |
| 382 | <xs:documentation>The name of the map to display in this viewport</xs:documentation> |
| 383 | </xs:annotation> |
| 384 | </xs:element> |
| 385 | <xs:element name="HiddenLayerNames" type="LayerNameSetType" minOccurs="0"> |
| 386 | <xs:annotation> |
| 387 | <xs:documentation>Names of layers in the map to be hidden in this viewport</xs:documentation> |
| 388 | </xs:annotation> |
| 389 | </xs:element> |
| 390 | |
| 391 | ... |
| 392 | ... |
| 393 | |
| 394 | </xs:extension> |
| 395 | </xs:complexContent> |
| 396 | </xs:complexType> |
| 397 | }}} |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | |