Get center of map getCameraPosition()


#1

Hello,

I have a problem that I can not solve.
I use Ionic Google Maps native. I want to recover the latitude and longitude of the center of the map whenever I request it.

I want Something like that:

1

source: https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/class/Map/getCameraPosition

But it dosent work with me, I did that:
1

1

I thank you if you find a solution.