Skip to content

Commit

Permalink
Layer factory: Evaluate the new 'hoverOverlay' configuration attribut…
Browse files Browse the repository at this point in the history
…e for 'mapLayers'. Support all hover attributes on WMS layers.
  • Loading branch information
fschmenger committed Dec 16, 2021
1 parent 377a3b2 commit b35cc96
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/factory/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export const LayerFactory = {
serverType: lConf.serverType,
tileGrid: lConf.tileGrid,
projection: lConf.projection,
crossOrigin: lConf.crossOrigin
crossOrigin: lConf.crossOrigin,
hoverable: lConf.hoverable,
hoverAttribute: lConf.hoverAttribute,
hoverOverlay: lConf.hoverOverlay
})
});

Expand Down Expand Up @@ -193,7 +196,8 @@ export const LayerFactory = {
style: OlStyleFactory.getInstance(lConf.style),
columnMapping: lConf.columnMapping,
hoverable: lConf.hoverable,
hoverAttribute: lConf.hoverAttribute
hoverAttribute: lConf.hoverAttribute,
hoverOverlay: lConf.hoverOverlay
});

return vector;
Expand Down Expand Up @@ -250,9 +254,10 @@ export const LayerFactory = {
format: new this.formatMapping[lConf.format](lConf.formatConfig)
}),
style: OlStyleFactory.getInstance(lConf.style),
columnMapping: lConf.columnMapping,
hoverable: lConf.hoverable,
hoverAttribute: lConf.hoverAttribute,
columnMapping: lConf.columnMapping
hoverOverlay: lConf.hoverOverlay
});

return vectorLayer;
Expand All @@ -275,7 +280,8 @@ export const LayerFactory = {
}),
style: OlStyleFactory.getInstance(lConf.style),
hoverable: lConf.hoverable,
hoverAttribute: lConf.hoverAttribute
hoverAttribute: lConf.hoverAttribute,
hoverOverlay: lConf.hoverOverlay
});

return vtLayer;
Expand Down

0 comments on commit b35cc96

Please sign in to comment.