<commit_before>angular.module("citizen-engagement.issuesMap", ['angular-storage'])

.controller("issuesMapController", function($log, $scope, geolocation) {
	// ...
	geolocation.getLocation().then(function(data) {
	$scope.mapCenter.lat = data.coords.latitude;
	$scope.mapCenter.lng = data.coords.longitude;
	}, function(error) {
		$log.error("Could not get location: " + error);
	});
})<commit_msg>Maj du file selon la version celan de github<commit_after>angular.module("citizen-engagement.issuesMap", ['angular-storage', 'leaflet-directive','geolocation'])

.controller("issuesMapController", function($log, $scope, geolocation, mapboxMapId, mapboxAccessToken, AuthService) {
	
	
      $scope.mapCenter = {};
	  $scope.mapDefaults = {};
	  $scope.mapMarkers = [];
	  $scope.userCoords = {};
   
	
	geolocation.getLocation().then(function(data) {
		
		console.log(data.coords);
		
		$scope.mapCenter.lat = data.coords.latitude;
		$scope.mapCenter.lng = data.coords.longitude;
		$scope.mapCenter.zoom = 14;
		
		var mapboxTileLayer = "http://api.tiles.mapbox.com/v4/" + mapboxMapId;
		
		mapboxTileLayer = mapboxTileLayer + "/{z}/{x}/{y}.png?access_token=" + mapboxAccessToken;
		
		$scope.mapDefaults = {
			tileLayer: mapboxTileLayer
		};

		//ajout du pin du user
		$scope.userCoords.lat = $scope.mapCenter.lat;
		$scope.userCoords.lng = $scope.mapCenter.lng;
		
		$scope.mapMarkers.push({
			lat: $scope.userCoords.lat,
			lng: $scope.userCoords.lng,
			
		});
	

	}, function(error) {
		$log.error("Could not get location: " + error);
	});
})
{'fraction_non_alphanumeric': 0.1687136393018746, 'fraction_numerical': 0.0019392372333548805, 'mean_word_length': 4.26530612244898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5500019', 'n_tokens_mistral': 597, 'n_tokens_neox': 539, 'n_words': 78}