title: how to get center_changed latitude and longitude in angular google map
body: <p>I am using angular google map <a href="https://angular-ui.github.io/angular-google-maps/#!/" rel="nofollow noreferrer">https://angular-ui.github.io/angular-google-maps/#!/</a> . When user dragend the map. I need to get his center latitude and longitude like ola or uber app.  </p>
  
  <p>I got a demo in this link, but this demo displays lat and lng while drag  <a href="http://googlemaps.googlermania.com/google_maps_api_v3/en/map_example_21.html" rel="nofollow noreferrer">http://googlemaps.googlermania.com/google_maps_api_v3/en/map_example_21.html</a>  </p>
  
  <p>I don't know how to execute this. Below is my code. Please help me. Any help should be appreciated. Thanks in advance</p>
  
  <pre><code>$scope.map = {
                center: {
                  latitude: $scope.set_latitude, //current location
                  longitude: $scope.set_longitude
                },
                control: {}, 
                zoom: 12, 
                bounds: {},
                events:
                    { 
                      dragend: function (mapModel, eventName, marker, orignalEventArgs) {
                          alert('dragend');
                      }, 
                      tilesloaded: function(map, eventName, originalEventArgs){
  
                      var e = originalEventArgs[0]; 
                          var ret = {
                              id: 0,
                              latitude: $scope.set_latitude, // marker current location
                              longitude: $scope.set_longitude, 
                              title: 'Your Location',
                              icon:'image/marker.png'
                            };  
  
                            $scope.randomMarkers.push(ret); 
                      }
  
                    } ,
  
                    markersEvents: {
                      click: function(marker, eventName, model) { 
                          $scope.map.window.model = model;
                          $scope.map.window.show = true;
                      }
                    },    
                    window: {
                      marker: {},
                      show: false,
                      closeClick: function() {
                        this.show = false;
                      },
                      options: {}
                    }
              };
  </code></pre>