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 Dec 1, 2020. It is now read-only.
In esri code below, scope.$apply() is causing this error. When we change $apply to $evalAsync the error isn't appearing anymore.
map.on('extent-change',function(e){if(attrs.extentChange){self.extentChange()(e);}// prevent circular updates between $watch and $applyif(self.inUpdateCycle){return;}self.inUpdateCycle=true;scope.$apply(function(){// update scope propertiesupdateCenterAndZoom(self,map);$timeout(function(){// this will be executed after the $digest cycleself.inUpdateCycle=false;},0);});});
We are using the v1 directives
Expected behavior
No errors in Console.
Actual behavior
Map.setExtent() sometimes generates the error as mentioned in the subject. I expect that when the extent is set it will not generate this error.
"$digest already in progress"
Steps to reproduce the behavior
In the link below:
https://embed.plnkr.co/6C7GsTibHykPJQcxeU2g/
For us working solution:
In esri code below,
scope.$apply()is causing this error. When we change $apply to $evalAsync the error isn't appearing anymore.For more information about $evalAsync:
http://stackoverflow.com/questions/12729122/angularjs-prevent-error-digest-already-in-progress-when-calling-scope-apply/23102223#23102223
With kind regards