| MGMap.createLayer |
|
MGMapLayer createLayer(String type, String name)
Creates and adds a layer of the specified type to the map.
At this time, only redline layers can be added to the map. For more information on redline layers, refer to "Applications" in the Autodesk MapGuide Developer's Guide.
type - The layer type; currently redline is the only supported type.
name - The layer name.
MGMapLayer - An MGMapLayer object if successful, null otherwise.
-1 (busy)
-3 (illegal argument)
-5 (security violation)