Select to view content in your preferred language

Editor FeatureTemplate Last Symbol Incorrect (Bug?)

2253
2
10-25-2013 07:46 AM
NickG
by
Emerging Contributor
Experiencing issue with editor and feature template on last symbol (it is a PictureMarker but should be SimpleFill). Below you can see the drawing info from the rest service (Sorry for the formatting.)  Also, attached is an image of the resulting feature template represented in Flex.  As you can see the symbol for Weekly (7-10 days) is not correct.  For some reason it is a PictureMarkerSymbol when everything else is a SimpleFillSymbol (see dump from templateList.dataProvider below).  This may just be a bug, but if anyone has any insight it would be greatly appreciated. 

Thank you      

Drawing Info:
Renderer:
Unique Value Renderer:
Field 1: FREQUENCY
Field 2: null
Field 3: null
Field Delimiter: ,
Default Symbol:
Style: esriSFSSolid
Color: [0, 0, 0, 0]
Outline:
Style: esriSLSSolid
Color: [0, 0, 0, 255]
Width: 2
Default Label: Default
UniqueValueInfos:
Value: Annually
Label: Annually
Description:
Symbol:
Style: esriSFSSolid
Color: [0, 0, 0, 0]
Outline:
Style: esriSLSSolid
Color: [0, 112, 255, 255]
Width: 2
Value: Biannually
Label: Biannually
Description:
Symbol:
Style: esriSFSSolid
Color: [0, 0, 0, 0]
Outline:
Style: esriSLSSolid
Color: [255, 255, 0, 255]
Width: 2
Value: Every 2 weeks
Label: Every 2 weeks
Description:
Symbol:
Style: esriSFSSolid
Color: [0, 0, 0, 0]
Outline:
Style: esriSLSSolid
Color: [255, 170, 0, 255]
Width: 2
Value: Monthly
Label: Monthly
Description:
Symbol:
Style: esriSFSSolid
Color: [0, 0, 0, 0]
Outline:
Style: esriSLSSolid
Color: [197, 0, 255, 255]
Width: 2
Value: Weekly (7-10 days)
Label: Weekly (7-10 days)
Description:
Symbol:
Style: esriSFSSolid
Color: [0, 0, 0, 0]
Outline:
Style: esriSLSSolid
Color: [56, 168, 0, 255]
Width: 2
Transparency: 0
Labeling Info:


[/HR]


"templateList.dataProvider" mx.collections.ArrayCollection (@b068201)
[0] com.esri.ags.components.supportClasses.Template (@1471e511)
  featureLayer com.esri.ags.layers.FeatureLayer (@13f81ae1)
  featureTemplate com.esri.ags.layers.supportClasses.FeatureTemplate (@aa9df91)
  featureType com.esri.ags.layers.supportClasses.FeatureType (@acd22e1)
  symbol com.esri.ags.symbols.SimpleFillSymbol (@e235ca1)
[1] com.esri.ags.components.supportClasses.Template (@1471e5b9)
  featureLayer com.esri.ags.layers.FeatureLayer (@13f81ae1)
  featureTemplate com.esri.ags.layers.supportClasses.FeatureTemplate (@f05fcf1)
  featureType com.esri.ags.layers.supportClasses.FeatureType (@12d62581)
  symbol com.esri.ags.symbols.SimpleFillSymbol (@e235509)
[2] com.esri.ags.components.supportClasses.Template (@1471e661)
  featureLayer com.esri.ags.layers.FeatureLayer (@13f81ae1)
  featureTemplate com.esri.ags.layers.supportClasses.FeatureTemplate (@8c92191)
  featureType com.esri.ags.layers.supportClasses.FeatureType (@97cf319)
  symbol com.esri.ags.symbols.SimpleFillSymbol (@e235c59)
[3] com.esri.ags.components.supportClasses.Template (@1471e709)
  featureLayer com.esri.ags.layers.FeatureLayer (@13f81ae1)
  featureTemplate com.esri.ags.layers.supportClasses.FeatureTemplate (@b0681c9)
  featureType com.esri.ags.layers.supportClasses.FeatureType (@b4a7af9)
  symbol com.esri.ags.symbols.SimpleFillSymbol (@e2354c1)
[4] com.esri.ags.components.supportClasses.Template (@1471e7b1)
  featureLayer com.esri.ags.layers.FeatureLayer (@13f81ae1)
  featureTemplate com.esri.ags.layers.supportClasses.FeatureTemplate (@b068699)
  featureType com.esri.ags.layers.supportClasses.FeatureType (@b0684a1)
  symbol com.esri.ags.symbols.PictureMarkerSymbol (@168fa431)
Tags (2)
0 Kudos
2 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Roland,

I saw your first part of the feature layer drawing info in your REST services. How did your mxml file to consume those feature template? I am not really sure you just want to show feature symbol as legend or to create features by using the feature template.

Please see these links as reference:
For legend used:
https://developers.arcgis.com/en/flex/sample-code/legend-component.htm

For Template Picker"
https://developers.arcgis.com/en/flex/sample-code/templatepicker.htm
0 Kudos
NickG
by
Emerging Contributor
Hi Roland,

I saw your first part of the feature layer drawing info in your REST services. How did your mxml file to consume those feature template? I am not really sure you just want to show feature symbol as legend or to create features by using the feature template.

Please see these links as reference:
For legend used:
https://developers.arcgis.com/en/flex/sample-code/legend-component.htm

For Template Picker"
https://developers.arcgis.com/en/flex/sample-code/templatepicker.htm


Hi Nathan,
Sorry, I wasn't very clear with my explanation.  Its the template picker that is built into the editor that is rendering the last symbol incorrectly.  I'm not doing anything on my end in the MXML to render the swatches.  It happens automagically. The symbols (as far as I understand it) are rendered based on the feature template associated with the service.  For some reason the last one is incorrect once Flex gets a hold of it (as can be seen in the pic). 

Best,
Roland
0 Kudos