MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgLayer::MgLayer ( MgResourceIdentifier layerDefinition,
MgResourceService resourceService 
)

Creates a MgLayer object from a layer definition.

.NET Syntax
MgLayer(MgResourceIdentifier layerDefinition, MgResourceService resourceService);
Java Syntax
MgLayer(MgResourceIdentifier layerDefinition, MgResourceService resourceService);
PHP Syntax
MgLayer(MgResourceIdentifier layerDefinition, MgResourceService resourceService);
Parameters:
layerDefinition(MgResourceIdentifier) Identifier of the layer definition in a repository.
resourceService(MgResourceService) An MgResourceService that can be used to retrieve the layer definition.