mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 913 forks source link

Automatically get the center of the map and place a marker? #2906

Open uhmarc opened 2 years ago

uhmarc commented 2 years ago

Hello,

I've been playing with the documentation for a few hours now and I got the map working in my Cordova app, but I am trying to achieve a very specific action and I can't figure out how:

  1. The marker is always in the center of the screen.
  2. When the map is moved, it automatically gets the center of the map which the user can then confirm.

Is there any simply code snippet available to achieve this? Any help would be greatly appreciated :)