| 141 | ==== !MgPrintLayoutElementBase class ==== |
| 142 | |
| 143 | This class represents the base class for all print layout elements. This is what is returned when a platform client realizes a print layout element using a product-specific print layout service object. |
| 144 | |
| 145 | This class has properties that are separated out of the actual print layout element schema. For example, Visibility property is externalized from the print layout element itself so that it is controlled at runtime as opposed to hard-coding it. This class and its resource are very analogous to !MgLayerBase and its associated layer definition resource. The !MapDefinition resource actually defines the visibility of each layer and as such !LayerDefinition itself does not contain a Visiblity property. Name is another such property. |
| 146 | |
| 147 | The !GetResourceId() method returns the resource identifier of the print layout element itself. Typically, this will be supplied at the construction time of !MgPrintLayoutElementBase. This again is very similar to !MgLayerBase. |
| 148 | |
| 149 | The !ForceRefresh() method exists to allow for products that can’t automatically respond to associated resource changes. Such a product is !MapGuide where there can be no event support (this is not possible even internally since the site server and web server could be separated). In such products, a client that modifies a resource must invoke a method on the object that is affected by the resource change directly. In Layer API of Geospatial Platform, the !ForceRefresh on !MgLayerBase helps refresh the layer after its layer definition was modified. |
| 150 | |
| 151 | |