I am currently faced with the challenge of using latitude and longitude data provided by the server, which is stored in $scope.Address. I am attempting to create a map object with these values as shown below. However, my current implementation is not functioning properly. I need assistance in understanding how to correctly format this code so that it works as intended.
$scope.map = {
center: {
latitude: $scope.Address.Latitude,
longitude: $scope.Address.Longitude
},
markers: [{
latitude: $scope.Address.Latitude,
longitude: $scope.Address.Longitude
}],
zoom: 15
};