Solved! Go to Solution.
Hi,
I was wondering if anyone could help me set up config.xml correctly to reference an ArcGIS Online feature service with three sublayers, since I haven't been able to get the data to appear in the viewer.
I tried the following to no avail to incorporate all three sublayers:
<layer label="Northern Pike" type="dynamic" visible="true" alpha="1"
url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WIFO_GBT_PIKE/FeatureServer">
</layer>
I then tried to do for a single sublayer to see if type="feature" would make it work:
<layer label="Northern Pike" type="feature" visible="true" alpha="1"
url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WIFO_GBT_PIKE/FeatureServer/0">
</layer>
Any suggestions?
Thanks in advance for your help!
Hi,
I was wondering if anyone could help me set up config.xml correctly to reference an ArcGIS Online feature service with three sublayers, since I haven't been able to get the data to appear in the viewer.
I tried the following to no avail to incorporate all three sublayers:
<layer label="Northern Pike" type="dynamic" visible="true" alpha="1"
url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WIFO_GBT_PIKE/ MapServer">
</layer>
I then tried to do for a single sublayer to see if type="feature" would make it work:
<layer label="Northern Pike" type="feature" visible="true" alpha="1"
url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WIFO_GBT_PIKE/FeatureServer/0">
</layer>
Any suggestions?
Thanks in advance for your help!
I don't use agsonline, so not sure if it is structured the same, but.. Does the above change work for you?
R_
<layer label="Northern Pike YOY" type="feature" visible="true" alpha="1" url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_PIKE/FeatureServer/0"> </layer> <layer label="Northern Pike Spawn Adults" type="feature" visible="true" alpha="1" url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_PIKE/FeatureServer/1"> </layer> <layer label="Northern Pike Unk" type="feature" visible="true" alpha="1" url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_PIKE/FeatureServer/2"> </layer>
Not sure if ArcGISOnline is different than a local AGS, but I don't see the respective MapService for that FeatureService (normally, there is one of each when you make a featureservice).
In any case, since it is featureservice, this is the only way I could get it to display in the viewer:<layer label="Northern Pike YOY" type="feature" visible="true" alpha="1" url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_PIKE/FeatureServer/0"> </layer> <layer label="Northern Pike Spawn Adults" type="feature" visible="true" alpha="1" url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_PIKE/FeatureServer/1"> </layer> <layer label="Northern Pike Unk" type="feature" visible="true" alpha="1" url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_PIKE/FeatureServer/2"> </layer>
But, it does draw them correctly (at least in v3 and v31. Don't have older version to test).
R_