You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 25, 2019. It is now read-only.
I need to do geocoding on a map object, and as best I could see, there is no support for "addListenerOnce" and/or the tilesloaded event.
It was trivial to add it. And yes, I know this is NOT elegant. :)
functionbindMapEvents(scope,eventsStr,googleObject,element){// Jason's hack. This makes the "ready" function fire on map load.google.maps.event.addListenerOnce(googleObject,'tilesloaded',function(){scope.ready();});angular.forEach(eventsStr.split(' '),function(eventName){
...
}}
In the controller:
/* ready() is a custom definition that I added to the ui-map code. It sets up a one time listener that will run on 'tilesloaded' */$scope.ready=function(){$scope.getCoords($scope.address1+" "+$scope.city+" "+$scope.selectedState+" "+$scope.zip);};