

As shown in figure, the first one is in the index. The js wrote Mars earth coordinate system can be converted to coordinate system function, the second picture is what I want to call the above function, get after conversion coordinates, excuse me how to call a function to get the available values in this position, so it can be used in the marker?
PS: if you can help to take a look at the first function is better, thank you very much!