Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docsprint] Add inline snippet and related examples to map.triggerRepaint #9555

Merged
merged 1 commit into from
Apr 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down