Select to view content in your preferred language

Popup template with long, lat

161
0
05-29-2024 01:23 AM
WoHouYeng
New Contributor

How can i append and display long, lat in my popupTemplate?

What I had tried is using arcade expression but the query is making the popup loads too slow. 

const template = {
	title: "Title",
	content: [
		{
			type: "fields",
			fieldInfos: [
				{
				    fieldName: "expression/getCoords",
				},
				//......
			]
		}
	],
	expressionInfos: [
	    {
	        name: "getCoords",
	        expression: "Centroid($feature).x" //test
	    }
	],
	actions: [editActions]
}

 

0 Kudos
0 Replies