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

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.

Thank you

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

 how can i assign it to a local variable ?

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.

Thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.