Select to view content in your preferred language

ArcGIS Runtime 10.1 Java - Dynamic layer capabilities

2319
2
Jump to solution
06-12-2013 03:17 PM
SachinKanaujia
Deactivated User
There is a way proposed by ESRI to add shapefiles and rasters using a dynamic service created via a blank mpk. But looks like there are very minimal functionalities it supports. How can do the following functionalities on the dynamic layers added to this blank map service?

1) Query all or specific Layer(s)
2) Identify on dynamic layer(s)
3) Labeling

I tried to form requests like the REST API but still doesnt seem to work. Is this not supported yet with ArcGIS Runtime 10.1 for Java and is there a possibility that it will be in 10.2
0 Kudos
1 Solution

Accepted Solutions
SachinKanaujia
Deactivated User
Thanks....There were some issues with the case-sensitivity in the request. Now the Query works fine.

I tried the REST API way for the Labeling. I dont get any errors and get an image back but its not labeled. On checking the rest api documentation I find that "If dynamicLayer resource lists canModifyLayer to be false, then only the label properties specified in drawingInfo are honored - use showLabels to turn on/off labels and use labelingInfo to specify how the labels are drawn."

http://resources.arcgis.com/en/help/rest/apiref/index.html?ms_dyn_query.html

That puts a limitation on dynamic layers?



Hi,

You won't be able to do Identify or Labeling using the 'dynamic workspaces' functionality (i.e. ad hoc adding of data rather than through a map package / mpk) at 10.1.1, but the REST API does support query on dynamic layers. The Java SE Runtime API doesn't have support within the Query classes for this, but look for this at 10.2.

For now to query a dynamic-workspace-style layer, e.g. a shapefile, you would need to construct your own query request, an example is on this page: http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_query.html

e.g. Example 1, where 'layer={...}' could be obtained in code from the DynamicLayerInfo of the layer you want to query.

If you'd like more information let me know,

~elise

View solution in original post

0 Kudos
2 Replies
EliseAcheson1
Deactivated User
Hi,

You won't be able to do Identify or Labeling using the 'dynamic workspaces' functionality (i.e. ad hoc adding of data rather than through a map package / mpk) at 10.1.1, but the REST API does support query on dynamic layers. The Java SE Runtime API doesn't have support within the Query classes for this, but look for this at 10.2.

For now to query a dynamic-workspace-style layer, e.g. a shapefile, you would need to construct your own query request, an example is on this page: http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_query.html

e.g. Example 1, where 'layer={...}' could be obtained in code from the DynamicLayerInfo of the layer you want to query.

If you'd like more information let me know,

~elise
0 Kudos
SachinKanaujia
Deactivated User
Thanks....There were some issues with the case-sensitivity in the request. Now the Query works fine.

I tried the REST API way for the Labeling. I dont get any errors and get an image back but its not labeled. On checking the rest api documentation I find that "If dynamicLayer resource lists canModifyLayer to be false, then only the label properties specified in drawingInfo are honored - use showLabels to turn on/off labels and use labelingInfo to specify how the labels are drawn."

http://resources.arcgis.com/en/help/rest/apiref/index.html?ms_dyn_query.html

That puts a limitation on dynamic layers?



Hi,

You won't be able to do Identify or Labeling using the 'dynamic workspaces' functionality (i.e. ad hoc adding of data rather than through a map package / mpk) at 10.1.1, but the REST API does support query on dynamic layers. The Java SE Runtime API doesn't have support within the Query classes for this, but look for this at 10.2.

For now to query a dynamic-workspace-style layer, e.g. a shapefile, you would need to construct your own query request, an example is on this page: http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_query.html

e.g. Example 1, where 'layer={...}' could be obtained in code from the DynamicLayerInfo of the layer you want to query.

If you'd like more information let me know,

~elise
0 Kudos