Changes between Version 12 and Version 13 of MapGuideRfc108
- Timestamp:
- 08/11/10 05:50:59 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified MapGuideRfc108
v12 v13 32 32 == Proposed Solution == 33 33 34 1. Use the symboldefinition to define the content of watermark. The watermark supports text and image.34 1. Create a new resource type for watermark, which defines content (in the format of an inline symbol definition), appearance (rotation / transparency) and position information of watermark. The schema of watermark definition is attached below. 35 35 36 2. Create a new resource type for watermark. This resource reference the symboldefinition and define the position, rotation and transparency of watermark. Add a new XSD file to define the watermark, and the !MdfModel and !MdfParser are needed to updated about this change.36 2. User can add a watermark to MapDefinition or LayerDefinition by referencing corresponding watermark resource(s) in it. However, we do NOT support inline watermark in MapDefinition and LayerDefinition. 37 37 38 3. Support inlining the watermark in mapdefinition and layerdefinition.38 3. When MapDefinition or LayerDefinition references a watermark resource, it can choose to override its appearance and position information to bring flexibility to the user. The override attributes defining in MapDefinition or LayerDefinition has a higher priority than that in watermark when rendering. 39 39 40 4. User can use watermark by referencing it from map and layer. The mapdefinition and the layerdefinition will be extented to reference the optional watermark resource. The Layerdefinition and Mapdefinition can reference multiple watermark resources.40 4. When being rendered, the watermark group of an MgMap is actually the collection of the watermarks referenced in its MapDefinition and the watermarks referenced in the LayerDefinition in it. 41 41 42 5. Change the render logic for map. When all the layers have been rendered and the renderer hasn’t output the result, render the watermark into the result.42 5. When using watermark in LayerDefinition, user can decide in what situation the watermark is visible during rendering by defining “Usage” properties. For example, a watermark of a WMS layer is only visible when the value of its “Usage” properties is “WMS” or “ALL”. (There is no such problem when using watermark in MapDefinition, because it will never be used in WMS.) 43 43 44 Please refer to the attachment to find the schema of WatermarkDefinition and the updated schemas of LayerDefinition/MapDefinition.45 44 46 45 == Implications ==