From 552a6df26cc332d39d8fe2b14af07779dbe5628b Mon Sep 17 00:00:00 2001 From: Jeremy Stratman Date: Mon, 13 Apr 2020 17:07:48 -0700 Subject: [PATCH] add inline snippet and examples to map.triggerRepaint --- src/ui/map.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/map.js b/src/ui/map.js index c1e5eee4dad..722f70a2e9b 100755 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -2344,6 +2344,10 @@ class Map extends Camera { * Trigger the rendering of a single frame. Use this method with custom layers to * repaint the map when the layer changes. Calling this multiple times before the * next frame is rendered will still result in only a single frame being rendered. + * @example + * map.triggerRepaint(); + * @see [Add a 3D model](https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/) + * @see [Add an animated icon to the map](https://docs.mapbox.com/mapbox-gl-js/example/add-image-animated/) */ triggerRepaint() { if (this.style && !this._frame) {