Web API Reference
MapGuide Open Source
Overview
Modules
Classes
MgLayerCollection
Add
Clear
Contains
Contains
GetCount
GetItem
GetItem
IndexOf
IndexOf
Insert
Remove
RemoveAt
SetItem
MgLayerBase
* MgLayerCollection::GetItem
(
CREFSTRING
name
)
Returns the layer with the specified name.
.NET Syntax
MgLayerBase
GetItem(string name);
Java Syntax
MgLayerBase
GetItem(String name);
PHP Syntax
MgLayerBase
GetItem(string name);
Parameters:
name
(String/string) Name of the layer to get.
Returns:
Returns the layer.
Exceptions:
MgObjectNotFoundException
if the name does not exist.
Comments or suggestions? Send us
feedback
.