angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Two-way binding of map center doesn't work and support of GeoJSON Point after map drag was gone (directive ui-gmap-google-map)

Open AbstractVisions opened this issue 9 years ago • 4 comments

After this commit https://github.com/angular-ui/angular-google-maps/pull/1748/commits map.center (directive ui-gmap-google-map) has not changes after map drag and support of two-way binding GeoJSON Point was gone

The reason of a problem is as follows (updateCenter function) in this code: https://github.com/angular-ui/angular-google-maps/blob/master/src/coffee/directives/api/map.coffee#L144

With ver 2.3.2 (angular-google-maps) works good. the problem has appeared starting with version 2.3.3

AbstractVisions avatar Aug 15 '16 15:08 AbstractVisions

Hi, I have also noticed this. I also think the demo (http://angular-ui.github.io/angular-google-maps/#!/demo) shows the same thing) - I didn't see this with the previous version, but I think the center numeric display on the right should update if you drag the map around.

For my purposes I wouldn't actually need two-way binding if there was a getCenter method. There is in the standard google maps API, but I don't know how to call this from angular-google-maps. Can anyone help?

Thanks, Giles

gillez avatar Sep 12 '16 09:09 gillez

I think this is a duplicate of #1865.

gillez avatar Sep 12 '16 10:09 gillez

prepared PR https://github.com/angular-ui/angular-google-maps/pull/1950

AbstractVisions avatar Sep 23 '16 12:09 AbstractVisions

to gillez: look at control parameter of ui-gmap-google-map directive http://angular-ui.github.io/angular-google-maps/#!/api/google-map

AbstractVisions avatar Sep 23 '16 12:09 AbstractVisions