| MGMapLayerSetup Object |
|
The MGMapLayerSetup object provides run-time access to map layer setup through methods that let you change data source names and alter the way map features are linked to databases.
You can access all map layer setup attributes of all types of map layers with MGMapLayerSetup. If you attempt to query or modify an attribute that does not apply to the map feature you are working on, the method call fails and sets an error code indicating so in the MGError object.
Java Development for Autodesk MapGuide Viewer Plug-In: For Autodesk MapGuide Viewer Plug-In, the Java class MGMapLayerSetup extends java.lang.Object and can be found in the mapguide package, located in the npmapv32.zip file in the Netscape Plugins folder.
Java Development for Autodesk MapGuide Viewer, Java Edition: For Autodesk MapGuide Viewer, Java Edition, MGMapLayerSetup is a Java interface that resides in the com.autodesk.mgjava package, which is located in the mgjava.cab file (for Windows systems only) and the mgjava.jar file (for all platforms).
|
Gets the MGDatabaseSetup object for this layer. |
|
|
|
|
|
|
|
|
Indicates whether or not the map features in a spatial data file are linked to a table in a database. |
|
|
Indicates whether the feature name should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
Gets the spatial data source name for this map layer. |
|
|
Gets the feature table name for this map layer. |
|
|
Gets the SDP feature table geometry column name. |
|
|
Gets the SDP feature table key column. |
|
|
Gets the SDP feature table key column type. |
|
|
Gets the Autodesk MapGuide Server URL, including the name of the map agent file. |
|
|
Gets the source of the map data on this layer. |
|
|
Indicates whether the feature URL should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
Indicates whether the feature SQL Where clause should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
|
|
|
Sets the NameFromSdpFeatureTable, UrlFromSdpFeatureTable, and WhereFromSdpFeatureTable properties to True or false. |
|
|
Indicates whether the feature name should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
Sets the Spatial Data Source name for this map layer. |
|
|
Sets the Spatial Data Source name for this map layer. |
|
|
Sets the name of the SDP feature table geometry column. |
|
|
Sets the name of the SDP feature table key column. |
|
|
Sets the SDP feature table key column type. |
|
|
Sets the Autodesk MapGuide Server URL to the string value that you pass in. |
|
|
Indicates whether the feature URL should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
Indicates whether the feature SQL Where clause should come from the SDP feature table or from a secondary table in an OLE DB data source. |
Note that direct access to properties is only available in Autodesk MapGuide Viewer ActiveX Control. In Autodesk MapGuide Viewer Plug-In and Autodesk MapGuide Viewer, Java Edition APIs, get/set methods provide access to an object's properties. For compatibility, the ActiveX Control API supports the same get/set methods as the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition APIs.
Properties that set layer setup attributes set the layer's rebuild flag, but do not update the display. To update the display, call the refresh method of MGMap.
|
Gets the MGDatabaseSetup object for this layer. |
|
|
|
|
|
Indicates whether or not the map features in a spatial data file are linked to a table in a database. |
|
|
|
|
|
Indicates whether the feature name should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
Gets or sets the SDP name for this map layer. |
|
|
Gets or sets the SDP feature table name for this map layer. |
|
|
Gets or sets the SDP feature table geometry column name. |
|
|
Gets or sets the Spatial Data Provider feature table key column name. |
|
|
Gets or sets the SDP feature table key column type. |
|
|
Gets or sets the Autodesk MapGuide Server URL. |
|
|
Gets the source of the map data on this layer. |
|
|
Indicates whether the feature URL should come from the SDP feature table or from a secondary table in an OLE DB data source. |
|
|
Indicates whether the SQL Where clause should come from the SDP feature table or from a secondary table in an OLE DB data source. |