Select to view content in your preferred language

Conversion Widget Bug

3605
1
09-24-2020 12:26 AM
MatthieuThery1
Regular Contributor

There's an issue with the updateConversions method CoordinateConversionViewModel | ArcGIS API for JavaScript 4.16  . Both in the documentation and in the types (typescript).

It's supposed to be updateConversions(location, conversions) , but it always comes back with an error saying the location is not a proper Point.

In the actual code it seems the properties are reversed:

it's actually looking for updateConversions(conversions, location)

in typescript the workaround I'm applying is: 

Then it works fine.

0 Kudos
1 Reply
AnneFitz
Esri Regular Contributor

Hi Matthieu,

Thanks for reporting this! Yes, we accidentally documented the parameters in the wrong order. We will get the documentation and typings updated shortly.

Thanks again,

Anne