Google maps get coordinates - Not working

Hello,

There is any way of getting the coordinates (lat & long) of the center of the screen in google maps? I got the coordinates using “on press”, but not with:

image

And what i need is to get them from 1 point of the screen, not tapping the screen.

Any idea of how to do it?

Thanks in advance.

Hi @jonathanvalgarlh4ow,

I think these work the other way around, no? The lat and lng tell you where the map in initially centred, but doesn’t dynamically update as you scroll around.

Can you tell us a little more about what you’re trying to do with your app?

Thanks.

1 Like

Hi Domhnall,

I am trying to pick up the coordinate of the center of the screen. But as you said it doesn´t update when i scroll the map. So i was thinking if it is possible to call the method “onpress”, and get the coordinate of the center of the map but not tapping directly the screen. In other words, to do if the user was tapping the midle of the screen but without doing it and therefore get the lat and long parameters.

Regards & thanks.