149
Views
5
Comments
Solved
How to get the object printed in console ?
Question

I am using leaflet map 

when I set the value of Click to true in MapEvents  . 

a object with latitude and longitude is printed in console 

how can i take this value in a local variable or input variable 


Co-ordinates.png
2021-11-03 19-55-34
Asher
Solution

In your "OnClick" or "OnTouch" event (the client action) you will utilize an assign and map the values you want to your local variable that you've established. You could even create a Structure that is meant to hold lat and lon. coordinates.

UserImage.jpg
Pratik Giri

Thank you

2021-11-03 19-55-34
Asher
2021-11-03 19-55-34
Asher

This seems like it should be settable in your "OnClick" or "OnTouch" events of the screen.

UserImage.jpg
Pratik Giri

 how can i assign it to a local variable ?

2021-11-03 19-55-34
Asher
Solution

In your "OnClick" or "OnTouch" event (the client action) you will utilize an assign and map the values you want to your local variable that you've established. You could even create a Structure that is meant to hold lat and lon. coordinates.

UserImage.jpg
Pratik Giri

Thank you

2021-11-03 19-55-34
Asher
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.