Skip to content

Commit 6441893

Browse files
authored
Merge pull request #261 from gtt-project/fix/254-map-icons-to-front
#254 map icons to be front
2 parents ea3a922 + 76a5ace commit 6441893

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/gtt-client/init/layers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ function addVectorLayer(this: any, features: Feature<Geometry>[] | null): void {
182182
});
183183
this.vector.set('title', 'Features');
184184
this.vector.set('displayInLayerSwitcher', false);
185+
this.vector.on('prerender', () => this.map.flushDeclutterItems());
185186

186187
// Listen to the moveend event and show message when zoom level is too low
187188
let previousZoom = this.map.getView().getZoom();

0 commit comments

Comments
 (0)