DrawPointAction documentation and typings incorrect

385
2
07-21-2020 05:38 PM
ToddAtkins
Occasional Contributor

With 4.16, the properties of DrawPointAction changed, however the documentation and the Typescript typings do not reflect this change.

In 4.15, one could get the coordinates of the DrawPointAction using the coordinates property.

At 4.16, this property is now called vertices, however neither the documentation nor the Typescript typings reflect this change.

I have not investigated other draw action events so not sure if they are similarly affected or not, but just wanted to give a heads up so the docs and typings can be updated.

0 Kudos
2 Replies
SaschaBrunnerCH
Esri Contributor

Hi Todd,
Thank you very much for reporting this. 
It is a bug in the version 4.16 of the API and will be fixed in the next release. In the meantime you can use the following workaround, instead of evt.coordinates use:

evt.vertices[0]


Thanks again!

0 Kudos
ToddAtkins
Occasional Contributor

Yeah, that's what I'm doing. It's not a showstopper but using Typescript on all our projects does make it more of a hassle to workaround.

0 Kudos