Skip to content

Commit

Permalink
Optimize for no overlaps
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Sep 30, 2024
1 parent 8a3d19f commit dc50bd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/composables/useMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Control, defaults } from 'ol/control.js';
import ScaleLine from 'ol/control/ScaleLine.js';
import Link from 'ol/interaction/Link.js';
import { useGeographic } from 'ol/proj.js';
import { apply, getLayer, getSource, renderTransparent } from 'ol-mapbox-style';
import { apply, getSource, renderTransparent } from 'ol-mapbox-style';
import { getCenter } from 'ol/extent.js';
import { shallowRef } from 'vue';
import { AGRARATLAS_STYLE_URL, INITIAL_EXTENT } from '../constants.js';
Expand Down Expand Up @@ -107,7 +107,9 @@ export const mapReady = apply(map, AGRARATLAS_STYLE_URL, {
/** @type {import('ol/Tile.js').Options} */ (source.tileOptions).transition = undefined;
}
});
getLayer(map, 'neigungsklassen').setSource(null);
//@ts-expect-error
/** @type {import("ol/source/VectorTile.js").default} */ (getSource(map, 'agrargis')).overlaps_ =
false;
});

/**
Expand Down

0 comments on commit dc50bd3

Please sign in to comment.