Select to view content in your preferred language

Popup template with long, lat

153
0
3 weeks ago
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