angularjs - Update bounds in Angular-Google-Maps -


i trying use bounds of map limit markers refreshed. however, bounds never update in $scope or variable after map clicked , dragged. have done lot of googling wasn't able find angular-google-maps (not google map api v3). know how update bounds in angular-google-maps?

this recent attempt:

$scope.$watch('maps.bounds.northeast', function(newvalue, oldvalue) {      if (newvalue !== oldvalue) {          $scope.map.bounds.northeast = map.bounds.northeast;         $scope.$apply();     } }); 

when this, map not show up. when try checking newvalue , oldvalue , having alert box popup if different, pops when pages loads that's it.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -