Skip to content

Commit

Permalink
Merge pull request #1000 from geoadmin/bug-PB-802-multiple-drawing
Browse files Browse the repository at this point in the history
PB-802: Edit the geoadmin drawing on top - #patch
  • Loading branch information
ltshb authored Jul 12, 2024
2 parents 812869d + 1501ff0 commit c08a6bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/store/modules/layers.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ const getters = {
* @returns {KMLLayer | null}
*/
activeKmlLayer: (state) =>
state.activeLayers.find((layer) => layer.type === LayerTypes.KML && !layer.isExternal) ??
null,
state.activeLayers.findLast(
(layer) => layer.visible && layer.type === LayerTypes.KML && !layer.isExternal
) ?? null,

/**
* All layers in the config that have the flag `background` to `true` (that can be shown as a
Expand Down

0 comments on commit c08a6bd

Please sign in to comment.