216 | | • Platform client gets the product-specific implementation of resource service.[[BR]] |
217 | | • Client creates a new data store and builds a feature source definition referencing the created data store.[[BR]] |
218 | | • Client adds the feature source definition to resource service by calling !SetResource(fsId, fsXml). This data store will contain the print layout data that will be used to draw the geometry and stylize various aspects of the particular type of print layout element.[[BR]] |
219 | | • If the client chooses to use an existing feature source connection, then the above step can be skipped.[[BR]] |
220 | | • Client builds a layer definition, if applicable (for !MapViewport resources, this step is not necessary) that references the feature source definition and adds it to Resource Service by calling !SetResource.[[BR]] |
| 216 | * Platform client gets the product-specific implementation of resource service.[[BR]] |
| 217 | * Client creates a new data store and builds a feature source definition referencing the created data store.[[BR]] |
| 218 | * Client adds the feature source definition to resource service by calling !SetResource(fsId, fsXml). This data store will contain the print layout data that will be used to draw the geometry and stylize various aspects of the particular type of print layout element.[[BR]] |
| 219 | * If the client chooses to use an existing feature source connection, then the above step can be skipped.[[BR]] |
| 220 | * Client builds a layer definition, if applicable (for !MapViewport resources, this step is not necessary) that references the feature source definition and adds it to Resource Service by calling !SetResource.[[BR]] |
236 | | • Client builds an Xml for a particular type of print layout element. In this Xml, he specifies the Data.!ResourceId property to point to the feature source definition and the Stylization.!ResourceId property to point to the layer definition created in the previous steps. He also sets the fully qualified feature class name of the print layout element data in Data.!FeatureClass property.[[BR]] |
237 | | • Client adds this Xml to Resource Service by calling !SetResource(!printLayoutElementResId, !printLayoutElementXml)[[BR]] |
238 | | • The Resource Service implementation creates an instance of !PrintLayoutResourcesOwner if not already created and adds it to a named dictionary.[[BR]] |
239 | | • The Resource Service calls !AddResource on !MapPrintLayoutResourcesOwner object.[[BR]] |
240 | | • !PrintLayoutResourcesOwner determines the type of the print layout element that is being added and creates an runtime representation object for the resource. In case of !MapViewport resources, this would be !MapViewportResource, inherited from !MapResource class.[[BR]] |
241 | | • !PrintLayoutResourcesOwner then adds this runtime object to Resource Manager and also subscribes to Resource Manager events, if not already done.[[BR]] |
| 236 | * Client builds an Xml for a particular type of print layout element. In this Xml, he specifies the Data.!ResourceId property to point to the feature source definition and the Stylization.!ResourceId property to point to the layer definition created in the previous steps. He also sets the fully qualified feature class name of the print layout element data in Data.!FeatureClass property.[[BR]] |
| 237 | * Client adds this Xml to Resource Service by calling !SetResource(!printLayoutElementResId, !printLayoutElementXml)[[BR]] |
| 238 | * The Resource Service implementation creates an instance of !PrintLayoutResourcesOwner if not already created and adds it to a named dictionary.[[BR]] |
| 239 | * The Resource Service calls !AddResource on !MapPrintLayoutResourcesOwner object.[[BR]] |
| 240 | * !PrintLayoutResourcesOwner determines the type of the print layout element that is being added and creates an runtime representation object for the resource. In case of !MapViewport resources, this would be !MapViewportResource, inherited from !MapResource class.[[BR]] |
| 241 | * !PrintLayoutResourcesOwner then adds this runtime object to Resource Manager and also subscribes to Resource Manager events, if not already done.[[BR]] |