Select to view content in your preferred language

Problem with FeatureLayer

1824
9
04-12-2011 11:14 AM
DonFreeman
Emerging Contributor
Can someone tell me why this layer
<esri:ArcGISDynamicMapServiceLayer ID="City_Intersections"
       DisableClientCaching="False" 
       Url="http://gismaps.pagnet.org/ArcGIS/rest/services/ARRA_033011_2_plot/MapServer"
      VisibleLayers="1"
                      />

will render OK as a DynamicMapServiceLayer but will not render as a FeatureLayer?

Thanks
0 Kudos
9 Replies
MattMiley
Deactivated User
The featurelayer link needs too look like this

Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/1"
                              
Not this way

Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer/1"
0 Kudos
DonFreeman
Emerging Contributor
The featurelayer link needs too look like this

Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/1"
                              
Not this way

Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer/1"


Hi Matt. Did you try it?
 <esri:FeatureLayer ID="County_Intersections"
       DisableClientCaching="False" 
       Url="http://gismaps.pagnet.org/ArcGIS/rest/services/ARRA_033011_2_plot/FeatureServer/4"
       OutFields="*"      
                      />
Doesn't work yet load it as a MapService and it works fine.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
The shape fields containing the geometry are hidden by your services, hence the rest end points are not returning any geometry.
You have to update your service (check the visible fields with ArcGIS desktop).

Note : ArcGIS server 10 may be more strict than previous version concerning this point.
0 Kudos
DonFreeman
Emerging Contributor
If we unhide the shape fields, is there a way to hide them when we identify?
0 Kudos
DonFreeman
Emerging Contributor
The shape fields containing the geometry are hidden by your services, hence the rest end points are not returning any geometry.
You have to update your service (check the visible fields with ArcGIS desktop).

Note : ArcGIS server 10 may be more strict than previous version concerning this point.


Dominique -
We have unhidden ALL of the fields in the service layer but it still does not load as a FeatureLayer. CAn you see a specific field that is missing?
   <esri:FeatureLayer ID="County_Intersections"
       DisableClientCaching="False" 
       Url="http://gismaps.pagnet.org/ArcGIS/rest/services/ARRA/FeatureServer/4"
       OutFields="*"      
                      />
0 Kudos
DominiqueBroux
Esri Frequent Contributor
0 Kudos
DonFreeman
Emerging Contributor
http://gismaps.pagnet.org/ArcGIS/rest/services/ARRA/FeatureServer/4 returns Invalid URL


Sorry about that. It moves around a bit. Try this:
 <esri:FeatureLayer ID="County_Intersections"
       DisableClientCaching="False" 
       Url="http://gismaps.pagnet.org/ArcGIS/rest/services/ARRA_033011_2_plot/FeatureServer/4"
       OutFields="*"      
                      />
0 Kudos
ChristopherHill
Deactivated User
Hi,

If you look at the link here you will see that there is no (feature server)
http://gismaps.pagnet.org/ArcGIS/rest/services

you need to see ARRA_033011_2_plot(Feature Server) in order to have a url ending with /FeatureServer

You can use your MapServer in a FeatureLayer as ready only and you need to append the sub layer to the end.
<esri:FeatureLayer Url="http://gismaps.pagnet.org/ArcGIS/rest/services/ARRA_033011_2_plot/MapServer/1" />
0 Kudos
DonFreeman
Emerging Contributor
Problem solved. Thanks Chris. ACtually, this puts me back to where I was originally with the xaml. Check the second post to see where I was advised differently. The problem originally seems to be that the shape layer(s) was turned off.

Thanks
0 Kudos