grtjn / ml-google-maps-ng

AngularJS directives with Google Maps integration for use with MarkLogic REST-api.
http://grtjn.github.io/ml-google-maps-ng
Apache License 2.0
2 stars 0 forks source link

Revise access to google.maps #2

Open grtjn opened 9 years ago

grtjn commented 9 years ago

google should not be access directly, but through a provider.

grtjn commented 9 years ago

Let me have a first stab at this..

grtjn commented 9 years ago

Might relate to http://angular-ui.github.io/angular-google-maps/#!/api and #4

grtjn commented 9 years ago

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.

grtjn commented 8 years ago

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();
        }
    });
grtjn commented 6 years ago

Needs rethinking. I'd like to use https://libraries.io/bower/google-maps instead.