Preserve the drawing buffer by default for WebGL layers

This commit is contained in:
Tim Schaub
2021-12-18 11:36:44 -07:00
parent c8cfbfccf8
commit 0cc3bae8fe
8 changed files with 72 additions and 2 deletions
+2
View File
@@ -62,6 +62,7 @@ import {removeNode} from './dom.js';
* @property {Array<number>} viewHints ViewHints.
* @property {!Object<string, Object<string, boolean>>} wantedTiles WantedTiles.
* @property {string} mapId The id of the map.
* @property {Object<string, boolean>} renderTargets Identifiers of previously rendered elements.
*/
/**
@@ -1477,6 +1478,7 @@ class PluggableMap extends BaseObject {
viewHints: viewHints,
wantedTiles: {},
mapId: getUid(this),
renderTargets: {},
};
if (viewState.nextCenter && viewState.nextResolution) {
const rotation = isNaN(viewState.nextRotation)