Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
158
|
Chapter 9
Enhanced Layer Functionality API Additions
See Also
setClipEnabled
setClipEnabled Method
Syntax
boolean setClipEnabled(boolean enabled)
Description
Sets a value that specifies whether or not to apply the MapGuide spatial 
filtering to the layer. A value of True applies spatial filtering to the layer. A 
value of False does not apply spatial filtering to the layer.
A spatial filter reduces the geographic information, which is returned by a 
spatial query, to a particular geography. For more information about 
applying filters to spatial queries, see “Applying Filters to Spatial Queries” on 
page 42.
Parameters
enabled – Boolean value indicating whether or not to apply spatial filtering 
to the MapGuide spatial query.
True – Applies the filter to the spatial query.
False – Does not apply the filter to the spatial query.
Returns
boolean – Specifies whether or not the MapGuide spatial filter was success-
fully set.
True – Indicates that spatial filtering has been successfully set.
False – Indicates that spatial filtering has not been set.
Error Codes
-1 (Busy)
-5 (Security Violation)
-15 (Does not apply)