I have code like this :
$scope.maps = [
new google.maps.LatLng($scope.longitude[0], $scope.latitude[0]),
new google.maps.LatLng($scope.longitude[1], $scope.latitude[1]),
new google.maps.LatLng($scope.longitude[2], $scope.latitude[2])];
How to simplify in AngularJS style to take more iteration?