Merge pull request #9961 from KlausBenndorf/remove-select-interaction
SelectInteraction removal
This commit is contained in:
@@ -47,7 +47,6 @@ import {create as createTransform, apply as applyTransform} from './transform.js
|
||||
* @property {import("./transform.js").Transform} pixelToCoordinateTransform
|
||||
* @property {Array<PostRenderFunction>} postRenderFunctions
|
||||
* @property {import("./size.js").Size} size
|
||||
* @property {!Object<string, boolean>} skippedFeatureUids
|
||||
* @property {TileQueue} tileQueue
|
||||
* @property {!Object<string, Object<string, boolean>>} usedTiles
|
||||
* @property {Array<number>} viewHints
|
||||
@@ -366,13 +365,6 @@ class PluggableMap extends BaseObject {
|
||||
this.getTilePriority.bind(this),
|
||||
this.handleTileChange_.bind(this));
|
||||
|
||||
/**
|
||||
* Uids of features to skip at rendering time.
|
||||
* @type {Object<string, boolean>}
|
||||
* @private
|
||||
*/
|
||||
this.skippedFeatureUids_ = {};
|
||||
|
||||
this.addEventListener(getChangeEventType(MapProperty.LAYERGROUP), this.handleLayerGroupChanged_);
|
||||
this.addEventListener(getChangeEventType(MapProperty.VIEW), this.handleViewChanged_);
|
||||
this.addEventListener(getChangeEventType(MapProperty.SIZE), this.handleSizeChanged_);
|
||||
@@ -1241,7 +1233,6 @@ class PluggableMap extends BaseObject {
|
||||
pixelToCoordinateTransform: this.pixelToCoordinateTransform_,
|
||||
postRenderFunctions: [],
|
||||
size: size,
|
||||
skippedFeatureUids: this.skippedFeatureUids_,
|
||||
tileQueue: this.tileQueue_,
|
||||
time: time,
|
||||
usedTiles: {},
|
||||
@@ -1329,14 +1320,6 @@ class PluggableMap extends BaseObject {
|
||||
this.set(MapProperty.VIEW, view);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("./Feature.js").default} feature Feature.
|
||||
*/
|
||||
skipFeature(feature) {
|
||||
this.skippedFeatureUids_[getUid(feature)] = true;
|
||||
this.render();
|
||||
}
|
||||
|
||||
/**
|
||||
* Force a recalculation of the map viewport size. This should be called when
|
||||
* third-party code changes the size of the map viewport.
|
||||
@@ -1363,14 +1346,6 @@ class PluggableMap extends BaseObject {
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("./Feature.js").default} feature Feature.
|
||||
*/
|
||||
unskipFeature(feature) {
|
||||
delete this.skippedFeatureUids_[getUid(feature)];
|
||||
this.render();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user