Open grtjn opened 9 years ago
Let me have a first stab at this..
Might relate to http://angular-ui.github.io/angular-google-maps/#!/api and #4
Temp fix with an angular service to provide google.maps in release 0.0.1. Will need to be revised if we switch to angular-google-maps.
When switching to angular-google-maps, you need to wait for google-maps provider, but also for angular-map to be ready too. I had success with:
<ui-gmap-google-map control="control" ...>
$scope.control = {};
$scope.$watch('control.getGMap', function(getGMap) {
if (getGMap) {
$scope.gmap = getGMap();
}
});
Needs rethinking. I'd like to use https://libraries.io/bower/google-maps instead.
google should not be access directly, but through a provider.