Zum Hauptinhalt gehen

Can you get the latitude and longitude from the geometry of a feature.

Kommentare

5 Kommentare

  • Permanently deleted user

    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
  • Frank Martin

     

    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!

     

    geometry

     

     

     

    0
  • Frank Martin

    Here's the image.

    0
  • Permanently deleted user

    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
  • Permanently deleted user

    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.