I would like to keep the pin constant in the center of Google maps while the user can move the map and zoom around. Key is that the current GPS location of the pin (in the center still of course) recursively gets returned as value. I found this
But I this does not return the current center coordinates. I was looking for a demo implementation with code but can't find anything, would greatly appreciate help.
From this example on daftlogic.com, modified to use a marker instead of the crosshairs, put the center coordinates in an HTML element on the page.
Main points:
Working snippet:
working jsfiddle