Select to view content in your preferred language

Can I tweak the Editor's EditVertices command symbology?

708
2
12-14-2011 12:27 PM
markcheyne
Deactivated User
My polygon feature class renders semitransparent. When I select a polygon for editing with the EditVertices command, the polygon's symbology changes to opaque. It's color stays the same. I'd rather it stays semitransparent so the user can see the underlying orthoimagery as they reshape the polygon.

Can anyone provide some tips where I would alter that behavior?

Thanks, MC
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Are you saying the graphic that enabled EditVertices does not match its original graphic's symbol? How does FeatureLayer determine its symbol? Did you set a renderer or does the service define a renderer? Is the renderer based on a field/attribute? What version of the API are you using?
0 Kudos
markcheyne
Deactivated User
Thanks, you set me on the right track  😉

Formerly, the MXD behind the feature service defined the feature layer's symbology, including transparency (set to 20% on the Display tab of the Layer Properties dialog in ArcMap), though that part seemed to be ignored, so I set Opacity="0.8" in the esri:FeatureLayer element in the Map's XAML. I'm not symbolizing on any attribute, nor was I applying any renderer in XAML or code.

Then when I selected a polygon with the EditVertices command, the editable polygon changed from transparent to solid fill.

This is the 2.2 API.

Now, I assign a SimpleRenderer with a single SimpleFillSymbol (setting the Fill and BorderBrush to #oorrggbb color values that include opacity) to the FeatureLayer in XAML.

The polygons now draw with that renderer, and stay the same when they are selected with the EditVertices command.

Thanks!
0 Kudos