mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-05-26 18:15:10 +00:00
only apply minify to selection
This commit is contained in:
@@ -163,6 +163,9 @@ export class ReducedGPXLayerCollection {
|
|||||||
reduce() {
|
reduce() {
|
||||||
let itemsAndPoints = new Map<ListItem, TrackPoint[]>();
|
let itemsAndPoints = new Map<ListItem, TrackPoint[]>();
|
||||||
this._simplified.forEach(([item, maxPts, points], itemFullId) => {
|
this._simplified.forEach(([item, maxPts, points], itemFullId) => {
|
||||||
|
if (!get(selection).hasAnyParent(item)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
itemsAndPoints.set(
|
itemsAndPoints.set(
|
||||||
item,
|
item,
|
||||||
points
|
points
|
||||||
|
|||||||
Reference in New Issue
Block a user