I'm using ng-map in Angular.js For some reason my map picture is grayed out for 90% of the entire map, like so:
My HTML is pretty simple:
<div id="map">
<map></map>
</div>
I've even tried to add CSS like so:
<style>
#map{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
Here is my controller:
$scope.$on('mapInitialized', function(event, map) {
$scope.map.setCenter(new google.maps.LatLng($scope.location.latitude, $scope.location.longitude));
$scope.setZoom(4);
}
I have added the scripts for using ngMap. I have also removed any AdBlock if that might cause the issue.
EDIT: google.maps.event.trigger(map,'resize'); works