Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetClassDefinition
MgLayer
SelectAggregate
SelectFeatures
UpdateFeatures
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.

Comments or suggestions? Send us feedback.