The example shows how to render map synchronously within your own render loop.
By default, when map is updated, changes will be rendered in the next animation frame.
Setting synchronousRendering to true allows to control rendering process
and by calling mapView.renderSync().
MapViewEventNames.Update event fired when MapView requests for a redraw.
E.g.: Tiles asynchronously decoded and ready for rendering, labels animation, etc...
Subscribe to this event, and call your update method.
Implement your own render loop like in the example below.
With mapView.renderSync() you will immediately redraw the map scene.
Make checks to avoid multiple redrawing at one frame.
The example shows how to render map synchronously within your own render loop. By default, when map is updated, changes will be rendered in the next animation frame.
Setting
synchronousRenderingtotrueallows to control rendering process and by callingmapView.renderSync().MapViewEventNames.Updateevent fired when MapView requests for a redraw. E.g.: Tiles asynchronously decoded and ready for rendering, labels animation, etc...Subscribe to this event, and call your
updatemethod.Implement your own render loop like in the example below. With
mapView.renderSync()you will immediately redraw the map scene.Make checks to avoid multiple redrawing at one frame.