|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDynamicLayerDescription
Provides access to the available properties of a dynamic layer description object.
Note: Please make sure to check IMapServerInfo4::SupportsDynamicLayers value is True. If it is False, properties on this interface are ignored.
Method Summary | |
---|---|
IMapServerSourceDescription |
esri_getSource()
Data source for dynamic table. |
ILayerDrawingDescription |
getDrawingDescription()
Drawing Descriptions. |
void |
setDrawingDescriptionByRef(ILayerDrawingDescription ppLayerDrawingDescription)
Drawing Descriptions. |
void |
setSource(IMapServerSourceDescription ppMapServerSourceDescription)
Data source for dynamic table. |
Method Detail |
---|
IMapServerSourceDescription esri_getSource() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSource(IMapServerSourceDescription ppMapServerSourceDescription) throws IOException, AutomationException
ppMapServerSourceDescription
- A reference to a com.esri.arcgis.carto.IMapServerSourceDescription (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDrawingDescriptionByRef(ILayerDrawingDescription ppLayerDrawingDescription) throws IOException, AutomationException
ppLayerDrawingDescription
- A reference to a com.esri.arcgis.carto.ILayerDrawingDescription (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayerDrawingDescription getDrawingDescription() throws IOException, AutomationException
By setting this property, a user can override how features of an existing layer in a mapservice are drawn or set the renderer for a new layer added to to a mapservice dynamically. MapServer does not allow drawing description of all types of layer to be modified. Please check IMapLayerInfo4::CanModifyDrawingDescription property to find out whether you can change the renderer.
This is important to note that this is a stateless change. MapServer does not remember this change for the next request. It only affects that particular request what that means is that once the request is processed, MapServer does not remember that change and the next request comes in, MapServer processes that with layer's original state (the way it is defined in the source map document).
To set the layer back to the original state in your application session, you can set this property to Null or get the DefaultMapDescription from the server by calling GetServerInfo function.
You can create a new a DrawingDescription object with new renderer and set that to this property. Sometimes you may want to modify symbol for only one type of feature (in case of UniqueValueRenderer) or symbol of a ClassBreak, in this case you can get the default renderer information by calling GetDefaultLayerDrawingDescription. Then modify it and set it to this property. Please note GetDefaultLayerDrawingDescription may return simplified version of the symbol or some renderer may not be even supported - read the help for more information.
MapServer also has a helper function to assist you create renderer - you can use IMapServer4::GenerateDataClasses method to get UniqueValueRenderer or ClassBreaksRenderer created by MapServer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |