-
Notifications
You must be signed in to change notification settings - Fork 408
Could not intercept requestAnimationFrame from Google Maps #1024
Comments
@wtubog , |
Hi @JiaLiPassion thanks for the quick reply. Please try to zoom in and out on map and notice that |
@wtubog , the reason If there are gmaps api that can add customized |
A map instance has a method Is there a way to tap into the |
@wtubog , there is no way to change |
@wtubog , I created a sample to override |
…lib to configure root zone
…lib to configure root zone
…lib to configure root zone
close for now. |
Background: Google Maps triggers
requestAnimationFrame
when zooming in and out of the map and when panning, I want to intercept theserequestAnimationFrame
via Zone.js to debounce it and may be improve performance on mobile devices...I created a simple repro code on StackBlitz (please open console to see logs)
The problem here is that I can't seem to intercept the
requestAnimationFrame
on theonScheduleTask
method defined on the ZoneSpec of the created Zone calledmapZone
(but I'm seeing intercepted events such assetTimeout
inside the map when it's being instantiated) ... as you can see on the repro code, I ran the initialization of Google Maps inside the created ZoneI'm newbie on Zone.js, this probably might be a simple problem, but I can't seem to find a solution... what do you think am I missing here? :)
Thanks so much in advance!
The text was updated successfully, but these errors were encountered: