Hi,
How to create feature collection object using multiple Featureset (queried from multiple arcgis rest service URL) to render to map (smart map) as feature layer
Need help in layerdefinition to accomplish the same
Ganesh,
What have you tried? Have you looked at the FeatureCollection sample?
Hi Robert Scheitlin, Thanks for the reply, objective: Render multiple query task results (Rest API URL output) to the map as a smart map We had progress with the help of following code which does 1. Create Two Feature set using Tow different Query Task (Map server) 2.Binding two feature set to Feature collection-We are able to find the expected number of results in feature collection with graphics 3.Create feature layer using feature collection along with info template and also able to add feature layer to the map Issues 1.As a result we able to visualize only the first querytask output on the map, we confirmed this by viewing the pop up. doesn't contain the variables from the second querytask 2.layer rendering to map along with color,extent Help on 1. Approach 2. why feature layer does't contain both feature set detail(verified number of graphics in feature layer)? 3.provide with any code snippets for the same Our Code Snippet
Ganesh,
So you want the geometries and attributes from two different layer queries to be combined into on FeatureLayer? Will the geometries overlap?
Yes, we need to achieve the concept which you mentioned
we need to use overlay layers to achieve ?its same set of geometry data of polygon(feature set) to be shown in the map( can it be overlapped?)
else how to achieve this?
thanks
ganesh
Ganesh,
its same set of geometry data of polygon(feature set) to be shown in the map( can it be overlapped?)
So if I am interpreting this correctly the geometries are identical but have different attributes?
Ganesh,
Your scenario is quite unique so I have not done this before or have any samples for you on this subject. The best I can do is provide some general guidance. I would create a FeatureLayer (FL) using the fields combined from both sets of attributes that way you can add both of the results to the one FL. When you click on the feature to get a popup you will get a popup containing a record selector for those geometries that are duplicated.