ThinkGeo.com    |     Documentation    |     Premium Support

EditOverlayOnFeatureEdited event thrown w/o including EditedFeature

Hello,

In my map I catch the EditOverlayOnFeatureEdited event to do some after editing processing.

But sometimes - especially when the user just tries to add a new vertex - the event is thrown without setting the EditedFeature in the eventargs, meaning this property is NULL.

Is this by design?

Regards,
Peter

Hi Peter,

Yes, for FeatureEdited event, if you add vertex the feature will be null.

I think you can use VertexAdded or VertexAdding to catch that.

Regards,

Don

Hi Don,

thanks for the fast reply.
Good to know that it’s by design. I was just surprised to get a NULL value.

But is it a good design decision not to set this property? Wouldn’t the user always expect a value, despite the possiblity to get it via VertexAdded or VertexAdding? Just a thought…

Regards,
Peter

Hi Peter,

Thanks for your advice, I will let our developers know this feedback.

Regards,

Don