Select to view content in your preferred language

Transparent polygon while digitizing

2578
6
02-23-2012 01:10 PM
ChrisBradberry
Deactivated User
Hey,

I have been trying to make the polygon transparent while digitizing using the editor widget. The layer in the gdb for the service is transparent, and I also tried to make the service transparent in the xaml, but whenever you add a polygon, it draws solid.  That makes it difficult for the users to see what they are doing.  The poly turns transparent after they have finished digitizing.  Is there a way to make the poly transparent while the user is digitizing?


Thanks, Chris
6 Replies
JenniferNery
Esri Regular Contributor
Can you share the feature symbol? Is it coming from service renderer or client renderer? EditVertices will clone the geometry, attribute and symbol so it should not be different from the original graphic.
0 Kudos
ChrisBradberry
Deactivated User
Jennifer,

The symbol is just a simple polygon fill that is rendered from a dynamic feature service.  It is actually built from an SDE feature, not gdb. It is about as basic as you can get, a feature service with a simple polygon fill with the transparency set to 30%.  If I set the transparency in the service, it does not render transparent on the map.  If I set the transparency in the xaml, then it will render transparent, but the clone is not transparent while editing. 

Does the rest endpoint support transparency in a feature layer?

Thanks, Chris
0 Kudos
JenniferNery
Esri Regular Contributor
The features on your map are rendered with transparent fill but the EditorWidget.TemplatePicker.Editor.Add draws with solid fill? That does not seem right because Editor.Add relies on FeatureLayer.Renderer.GetSymbol() and use this to set Draw.FillSymbol.
0 Kudos
ChrisBradberry
Deactivated User
The features will only render transparent if I add transparency in the xaml.  The transparency designated in the service does not render.  But the transparency is listed on the rest endpoint when you view it on the web. 

So it seems that the problem is getting the service to correctly render transparent.  Do you have any ideas about that?

Chris
0 Kudos
JenniferNery
Esri Regular Contributor
I just tried it with a feature service that has "Hollow style" for Fill Symbol.

REST end point defines the symbol as this
Symbol:

    Style: esriSFSSolid
    Color: [0, 0, 0, 0]
    Outline:
        Style: esriSLSSolid
        Color: [110, 110, 110, 255]
        Width: 1


Kindly see attached map with EditorWidget (I did not complete the draw yet and the fill was still transparent).
0 Kudos
ChrisBradberry
Deactivated User
I can make it work with a hollow fill, but that is not optimum.  I tried using a 10% hash fill and changed the color, but that rendered as a solid fill.  When I view the layers from the rest endpoint website using the viewer, I can see the hash symbol, but not in my silverlight app.

Not sure if I have something that causes a conflict in my code.

Chris
0 Kudos