Struggling to grasp AngularJS and its mapping capabilities has been quite challenging for me.
Currently, my code looks like this:
<map data-ng-model="mymapdetail" zoom="11"
center="{{item.coordinates}}" style="heigth:375px">
<div data-ng-model="mymarker"></div>
</map>
The map is displayed correctly with the specified center. However, I am facing difficulty in adding a marker using the following code:
$scope.mymarker = new google.maps.Marker({
map: $scope.mymapdetail,
position: new google.maps.LatLng(item.coordinates),
title: woa.title
});
Unfortunately, this code does not seem to be functioning as expected. Can someone please help me identify where the issue lies?