googlemaps-samples / codelab-3d-maps-webgl-js

Apache License 2.0
27 stars 54 forks source link

infinit ondraw #8

Closed dotku closed 2 years ago

dotku commented 2 years ago

image

I found that webGLOverlayView.onDraw will run infinitely, anyway we can stop it if there is no movement?

amuramoto commented 2 years ago

This codelab is meant to run infinitely. If you want to stop, you can set a conditional to stop recursively calling requestAnimationFrame