Select to view content in your preferred language

layerDefinitions

946
3
12-06-2012 10:47 PM
ericgoueffon
Deactivated User
Hello,

I work with AGS 9.3.1 and AGS lib 2.5.
I see that my default layerDefinitions array in my ArcGISDynamicMapServiceLayer is not automatically filled with the default values from the server. Is that normal?

And if I call the getAllDetails method, all LayerDetails object have a LayerDefinition to null.

Could you explain this please?

thanks a lot
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Eric,

   There is no where in the documentation that states that the definition query you have in ArcMap is carried over to the ArcGISDynamicMapServiceLayer.

http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer...

Array of layer definition expressions that allows you to filter the features of individual layers in the exported map image.      The array elements may either be a LayerDefinition or a String where the array index represents the layer ID.      Definition expressions for layers that are currently not visible will be ignored by the server.           


It is for applying layerDefinitions on the Flex side.
0 Kudos
ericgoueffon
Deactivated User
thank you,

I'm ok with you, but with the getDetails method we get a layerDetails, and the definition of definitionExpression is :

definitionExpression : String
The definition expression of the layer as specified in the Service Directory.

what is it used for please, or maybe it's working on 10.0?

For you, the only way to have this information is to send a HTTPrequest on a rest layer url with "?json" parameter?

thank you again,
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   In ArcGIS Server 10 I get the Definition Expression.

Layer: Point Symbology (ID: 2)

Display Field: SymDesc

Type: Feature  Layer

Geometry Type: esriGeometryPoint

Description: 

Definition Expression: NOT SymDesc = 'Arrow Marker  Symbol'

Copyright Text:

Min. Scale:  0

Max. Scale: 0

Default Visibility: True
0 Kudos