Hi I'm working with Javascript Maps SDK version 4.31. I'm running a query on a featurelayer returning the geometry but I'm not able to access latitude, longitude, x or y properties. Here's my code:
Solved! Go to Solution.
Thanks Joel -- the test for null was a good suggestion. I didn't find any null geometries in my featurelayer, but I was able to get the lat and long values by putting the geometry of each record into a variable, and then pulling the lat and longs from the variable. I don't know why this works. I'm using Angular so maybe something with the strict types?
As far as I can tell, your code looks fine. Here's something to look into though:
Thanks Joel -- the test for null was a good suggestion. I didn't find any null geometries in my featurelayer, but I was able to get the lat and long values by putting the geometry of each record into a variable, and then pulling the lat and longs from the variable. I don't know why this works. I'm using Angular so maybe something with the strict types?