dragging map doesn't change center
I am trying to set local storage variables using a G-map.
On a button click event two storage variables should be set, corresponding to the center of the G-map (Lat and Lng). For longitude I have done this using:
Bind to component: True
Target component: map
Property name: longitude
However, the point is that if the map is dragged, the center latlng is changed. And when the button is clicked, the current center of the map (after being dragged) is stored in local storage.
However, it doesn't seem like the center of the G-map is changing when the map is dragged, since the lat and lng stored in local storage seems to be the center of the map when it was first initialized (before being dragged).
Any help much appreciated - how to I get the center coordinates of the map to change as it is dragged?
Thanks!