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
Post a Comment