title: $http angularJS loop for each object with leaflet issue
body: <p>I'm making a little app for AngularJS personal training, and i'm getting a few errors.</p>
  
  <p>I receive Json data from an API, and then I want to display amarker for every object I get. The problem is that I have a console error, so I supposed I've made a mistake.</p>
  
  <p>Here goes my controller</p>
  
  <pre><code>toulouseVeloControllers.controller('toulouseVeloListCtrl', ['$scope', '$http',
    function($scope, $http) {
  
        angular.extend($scope, {
            osloCenter: {},
            markers: {},
            defaults: {
                scrollWheelZoom: false
            }
        });
  
  
        $http.get('https://api.jcdecaux.com/vls/v1/stations?contract=toulouse&amp;apiKey=*********************************').success(function(data) {
  
            $scope.bornes = data;
  
            for (var i = 0; i &lt; data.length; i++) {
  
                $scope.markers.osloMarker = {
                    lat: data[i].position.lat,
                    lng: data[i].position.lng,
                    message: data[i].name,
                    focus: true,
                    draggable: false
                };
                $scope.osloCenter = {
                    lat: data[1].position.lat,
                    lng: data[1].position.lng,
                    zoom: 15
                };
            }
  
            console.log(data.position.lat);
            console.log(data.position.lng);
        });
    }]);
  </code></pre>
  
  <p>In my map I only have a marker for my last object. And in the console I have "TypeError: Cannot read property 'lat' of undefined"</p>
  
  <p>When I try to display all my object outside of the map, in a list with ng-repeat, I have no problem.</p>
  
  <p>Here go my HTML : </p>
  
  <pre><code>&lt;div ng-controller="toulouseVeloListCtrl"&gt;
      &lt;leaflet markers="markers" center="osloCenter" style="width: 100%; height: 500px;"&gt;&lt;/leaflet&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any idea of what is wrong ?</p>
  
  <p>Thank you a lot !!</p>
  
  <hr>