Using mapbox to change text values

Hi There,

I'm a newbie so apologies for the simple question. I want to change the text value of a text control in an app when I click a map. I have added the following code to "On Viewport Change":

txtLat.setValue=mapboxMap.latitude;
txtLong.setValue=mapboxMap.longitude;

However, the text does not change. Am I doing this right?

Hi @Sean_Gilmour Thanks for reaching out!

setValue works like this:

componentName.setValue(valueYouWantToChangeTheComponentTo)

In the below example, I am setting the text component, textInput2, to have a value of 37.7577