 
 		$scope.etoggleLatLng = () ->
 			if(navigator.geolocation)
-				navigator.geolocation.getCurrentPosition(showPosition);
+				navigator.geolocation.getCurrentPosition(showPositionOnEdit);
 			else
 				alert("Browser not supported");
 			return true
+
 		$scope.updateJob = (editjob) ->
 			editjob.lat = $scope.editjob.lat;
 			editjob.lng = $scope.editjob.lng;

		$scope.lat = null;
		$scope.lng = null;
		$scope.editjob = {};
		$scope.map = {};
		$scope.emap = {};
		$scope.newjob = {};
		$scope.editjob = null;
		$scope.marker = {


		$scope.getLatLngfAdd = (address) ->
			$http({url: '/getlatlng', method: 'GET', params: {address: address}}).then (response) ->
				if response.data.result[0]? && response.data.result[1]?
					$scope.lat = response.data.result[0];
					$scope.lng = response.data.result[1];
					$scope.map.center = {latitude: $scope.lat, longitude: $scope.lng};
					$scope.marker.coord = {latitude: $scope.lat, longitude: $scope.lng};
		
		$scope.egetLatLngfAdd = (address) ->
			$http({url: '/getlatlng', method: 'GET', params: {address: address}}).then (response) ->
				if response.data.result[0]? && response.data.result[1]?	
					$scope.editjob.lat = response.data.result[0];
					$scope.editjob.lng = response.data.result[1];
					$scope.emap.center = {latitude: $scope.editjob.lat, longitude: $scope.editjob.lng};
					$scope.emarker.coord = {latitude: $scope.editjob.lat, longitude: $scope.editjob.lng};
		return
	]
	return
