Hatched fill Polygons displaying in Flex Viewer

2498
5
05-13-2011 08:24 AM
PeterBaldwin
New Contributor II
Hello,

I'm trying to display hatched fill polygons in the Flex Viewer but they don't display when I add them as feature layers for editing purposes. The only way I can get them to display is to add them as dynamic layers using the MapServer version from the REST services. When I display them as feature layers using the FeatureServer version the hatching is not shown and they just appear solid. Is there anyway to edit them with hatched fill shown?

Thanks,

Peter.
Tags (2)
0 Kudos
5 Replies
PeterBaldwin
New Contributor II
I've been trying to find an example of this, the best I can come up with is if you add this service as a dynamic layer you can see the hatching on the polygons that are vacant:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsParcelCharacteristics/...

but if you use the same service and just load one layer as a feature layer instead such as this:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsParcelCharacteristics/...

then it doesn't show the hatching. This is not perfect example as there is no FeatureServer available so I can't try it with the Edit tool but the principle is the same I think.

To see some example polygons locate the following address: Timberlake Dr, Bloomfield Hills, MI 48302
0 Kudos
BjornSvensson
Esri Regular Contributor
It shouldn't make a difference whether the FeatureLayer is based on a MapService or a FeatureService. The key aspect is how the service directory presents the symbology.

The FeatureLayer gets the information from the symbol metadata which you can see on the layer page in the service directory. For example for
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsParcelCharacteristics/...
Commercial Apartment Vacant
Description:
Symbol:
Simple Fill Symbol:
Style: esriSFSSolid, Color: [254, 177, 25, 255]
Outline:
Simple Line Symbol:
Style: esriSLSSolid, Color: [156, 156, 156, 255], Width: 1

I think the key is  how the symbol was defined in the MXD (and then represented on the server).  The REST documentation, http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/symbol.html#sfs, lists what is supported (in REST):
"style" : "< esriSFSBackwardDiagonal | esriSFSCross | esriSFSDiagonalCross | esriSFSForwardDiagonal | esriSFSHorizontal | esriSFSNull | esriSFSSolid | esriSFSVertical >",


Your first step should probably be to set up a service where the Service Directory lists one of these hatch patterns.
0 Kudos
PeterBaldwin
New Contributor II
Hi Bjorn,

Thank you for your reply, the definition in the REST service is the other part of this that is confusing me. In the example where you have it shown as esriSFSSolid I would expect this to be esriSFSForwardDiagonal because in the Legend this is how it is shown:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsParcelCharacteristics/...

A similar thing is happening with my map services where I have it defined with a diagonal hatch in my MXD and have published it to server but it is saying it is esriSFSSolid in the REST service despite showing it as hatched in the legend. If I add the whole service to the Flex viewer as a dynamic service it displays the hatch but adding it as a feature layer it doesn't.
0 Kudos
NicoleCeranek
New Contributor
Has anyone found a solution for this hatch display issue? We are encountering the same thing and would like to know what we need to do.

nceranek@gie.com
0 Kudos
ClementBouscasse
New Contributor II
I am having the same issue... Did anyone managed to work around it?
0 Kudos