How to expand CoordinateConversion by default
There doesn't appear to be a documented way, but adding an "_expanded" property to your constructor will presently do the trick:
const ccWidget = new CoordinateConversion({
view: view,
_expanded: true
});
Thank you. If I want the default page to be input coordinates?
const ccWidget = new CoordinateConversion({
view: view,
_expanded: true,
_inputVisible: true
});
Thank you very much!
How can I make this default to xy
const ccWidget = new CoordinateConversion({
view: view,
_expanded: true,
_inputVisible: true,
_conversionFormat: "BASEMAP"
});
Just an FYI, when you see undocumented properties like that, we do not recommend using them in production apps, as they can change names or be removed at any time. However, if there is interest in this functionality, we will explore making it public at a future release.
Thank you very much!I hope to add this kind of attribute in the official version in the future, because this kind of attribute is more practical