Dynamic map layer vs. Dynamic data layer
We recently finished our migration to 10.1 and I'd like to start taking advantage of dynamic layers. To get a feel for how it works, I've started working with the ESRI samples at:
http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer
I set up a dynamic layer in GE 1.4/SLV 1.9 using the following JSON:
{
"id": 102,
"definitionExpression": "\"STATE_NAME\" like 'Oregon'",
"source":
{
"type": "mapLayer",
"mapLayerId": 3
}
}
When I added that layer to GE/SLV, I was expecting to only have the state of Oregon returned from the "states" layer, but I still get all of the states. I also get all of the attributes for the other states. This is surprising to me because my test query only returns "Oregon" when I run it from the the endpoint: (http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer/dynamicLayer/query?layer={%0D%0A+%22id%22%3A+101%2C%0D%0A+%22definitionExpression%22%3A+%22\%22state_name\%22+like+%27Oregon%27%22%2C%0D%0A+%22source%22%3A+{%0D%0A++%22type%22%3A+%22mapLayer%22%2C%0D%0A++%22mapLayerId%22%3A+3%0D%0A+}%0D%0A}&where=STATE_NAME+LIKE+%27%25%27&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&f=html) Link to Query
Is Essentials able to use dynamic data layers like this? That is, can I configure a dynamic data source to display only specific attributes, such as a single state?
Or is GE/SLV limited to dynamic map layers where only things like symbology and labels can be modified on the fly?
Or maybe my JSON is wrong?
Thanks,
Steve
-
Hi Steve,
This was an issue that was addressed in the 1.9.1 release of the Silverlight Viewer.
--Ryan
0 -
Thanks Ryan, upgraded to SLV 1.9.2 and that corrected the problem.
Steve
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer