Merge pull request #10018 from ahocevar/recover-from-skipfeature-removal
Recover from skip feature removal regressions
This commit is contained in:
@@ -556,7 +556,9 @@ class Executor extends Disposable {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case CanvasInstruction.BEGIN_GEOMETRY:
|
case CanvasInstruction.BEGIN_GEOMETRY:
|
||||||
feature = /** @type {import("../../Feature.js").FeatureLike} */ (instruction[1]);
|
feature = /** @type {import("../../Feature.js").FeatureLike} */ (instruction[1]);
|
||||||
if (opt_hitExtent !== undefined && !intersects(opt_hitExtent, instruction[3])) {
|
if (!feature.getGeometry()) {
|
||||||
|
i = /** @type {number} */ (instruction[2]);
|
||||||
|
} else if (opt_hitExtent !== undefined && !intersects(opt_hitExtent, instruction[3])) {
|
||||||
i = /** @type {number} */ (instruction[2]) + 1;
|
i = /** @type {number} */ (instruction[2]) + 1;
|
||||||
} else {
|
} else {
|
||||||
++i;
|
++i;
|
||||||
|
|||||||
@@ -97,9 +97,7 @@ class MapRenderer extends Disposable {
|
|||||||
* @return {?} Callback result.
|
* @return {?} Callback result.
|
||||||
*/
|
*/
|
||||||
function forEachFeatureAtCoordinate(managed, feature, layer) {
|
function forEachFeatureAtCoordinate(managed, feature, layer) {
|
||||||
if (managed) {
|
return callback.call(thisArg, feature, managed ? layer : null);
|
||||||
return callback.call(thisArg, feature, layer);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const projection = viewState.projection;
|
const projection = viewState.projection;
|
||||||
|
|||||||
Reference in New Issue
Block a user