Can you get the latitude and longitude from the geometry of a feature.
I need to capture the latitude and longitude of a point feature. Is there a way to to that in WF5? Can't access it this way: =$selectionQuery1.features[0].geometry. latitude.
-
Put in a log activity and log the object =$selectionQuery1.features[0].geometry
This will allow you to see all the attribute names in developer tools. It's probably like .lat or something like that.
0 -
Hi Carlos,
Thanks. I used the Log. They are shown as latitude and longitude as seen below. That's why I thought it would be $selectionQuery1.features[0].geometry. latitude. Not sure if WF5 exposes those values. Thanks again!
0 -
Here's the image.
0 -
Yeah, the values are there. What do you get when you log the value "=$selectionQuery1.features[0].geometry.latitude"? perhaps you need to toString them.
0 -
Also, there seems to be a space between geometry and .latitude in your original post. Just double check on that.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare