Feature Labels disappearing on RefreshFeatures

804
2
10-04-2016 06:08 AM
JeniferCochran1
New Contributor II

I have a mpk that has a Feature Layer where the features are labeled based on an attribute (which is just a string).  When I am creating new features on this feature layer sometimes the label appears then quickly disappears.  I believe it is due to a RefreshFeatures call off of the ServiceFeatureTable that is causing it to disappear.  I know that the label should be there because when I pan the map, the label appears.  I want the label to not disappear because it is confusing for any user. What steps would I have to take to Refresh/Re-render the layer when a new feature has been added (without having the user pan the map)?

Thank you

0 Kudos
2 Replies
JeniferCochran1
New Contributor II

Actually I found the TRUE cause to the labels disappearing.  IF you have a label rendered on the map with an objectID of 1 and call ServiceFeatureTable.QueryAsync(1);  The label will disappear for that feature.  Is this a known bug? and what is the workaround?

JeniferCochran1
New Contributor II

I still have this problem.  Is anyone looking into this?

0 Kudos