I am developing a transportation app similar to Uber or Lyft using JavaScript. I am looking to retrieve the map location with the center of the screen, where there is a marker located at y = 0 and x = 0.
Similar to the image below:
The user should be able to move their finger across the screen, allowing for automatic registration of the new position as the marker remains in the center of the screen.
If anyone can assist me with this, it would be greatly appreciated. Thank you!