Select to view content in your preferred language

CoordinateConversion

758
8
02-20-2023 03:31 AM
HAOH
by
Emerging Contributor
 

How to expand CoordinateConversion by default

HAOH_0-1676892609391.png

 

 

 

0 Kudos
8 Replies
JoelBennett
MVP Regular Contributor

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
});
HAOH
by
Emerging Contributor

Thank you. If I want the default page to be input coordinates?

0 Kudos
JoelBennett
MVP Regular Contributor
const ccWidget = new CoordinateConversion({
	view: view,
	_expanded: true,
	_inputVisible: true
});
HAOH
by
Emerging Contributor

Thank you very much!

0 Kudos
HAOH
by
Emerging Contributor

HAOH_0-1677137475135.png

How can I make this default to xy

 

0 Kudos
JoelBennett
MVP Regular Contributor
const ccWidget = new CoordinateConversion({
	view: view,
	_expanded: true,
	_inputVisible: true,
	_conversionFormat: "BASEMAP"
});
0 Kudos
Noah-Sager
Esri Regular Contributor

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.

0 Kudos
HAOH
by
Emerging Contributor

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