New decluttering implementation

This commit is contained in:
Andreas Hocevar
2020-09-20 23:36:27 +02:00
parent 7a5e0db59f
commit 8e862766fc
22 changed files with 784 additions and 330 deletions

View File

@@ -50,6 +50,7 @@ import {removeNode} from './dom.js';
* @property {import("./View.js").State} viewState The state of the current view.
* @property {boolean} animate
* @property {import("./transform.js").Transform} coordinateToPixelTransform
* @property {import("rbush").default} declutterTree
* @property {null|import("./extent.js").Extent} extent
* @property {number} index
* @property {Array<import("./layer/Layer.js").State>} layerStatesArray
@@ -1372,6 +1373,7 @@ class PluggableMap extends BaseObject {
frameState = {
animate: false,
coordinateToPixelTransform: this.coordinateToPixelTransform_,
declutterTree: null,
extent: getForViewAndSize(
viewState.center,
viewState.resolution,