Greetings,
As per the title with JS API 3.11 I've tried displaying some feature layers published using ArcGIS Server 10 and 10.22 and their symbols render properly. However trying to display a feature layer from ArcGIS Server 9.31 just renders a big circle point with black outline (see attached image) and only one out of many is shown. Using a dynamic map service layer works though, all features are displayed with the correct symbols.
Any ideas?
Cheers,
Tukang
Solved! Go to Solution.
Tukang,
All services from a ArcGIS Server that is earlier than 10.0 do not provide drawingInfos in the service data that returns from ArcGIS Server and thus will NOT display the symbology that is defined in the MXD when using a FeatureLayer. The reason that a ArcGISDynamicMapServiceLayer does is because ArcGIS Server is returning an image and not the actual geometry like the FeatureLayer does. You will have to manually setup the FeatureLayers symbology when using FeatureLayer coming from an ArcGIS Server service that is less than 10.0.
Tukang,
All services from a ArcGIS Server that is earlier than 10.0 do not provide drawingInfos in the service data that returns from ArcGIS Server and thus will NOT display the symbology that is defined in the MXD when using a FeatureLayer. The reason that a ArcGISDynamicMapServiceLayer does is because ArcGIS Server is returning an image and not the actual geometry like the FeatureLayer does. You will have to manually setup the FeatureLayers symbology when using FeatureLayer coming from an ArcGIS Server service that is less than 10.0.
Thanks Robert, your explanation cleared that up for me.
Regards,
Tukang