From a852acf97cc7dccbf52656f16cc8086d143f3e27 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Fri, 17 Nov 2023 09:20:06 +0100 Subject: [PATCH] Updated documentation with forwarded layer --- docs/reusable-components.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reusable-components.md b/docs/reusable-components.md index 7055bb24..afc73207 100644 --- a/docs/reusable-components.md +++ b/docs/reusable-components.md @@ -35,6 +35,7 @@ An Overlay can either be statically positioned or can be used to implement a too ```javascript { feature: ol/Feature, + layer: ol/Layer, hoverAttribute: string } ``` @@ -70,7 +71,7 @@ export default { #### Feature hover tooltip -The following example implements a customized tooltip to render an attribute of a feature, when it is hovered on the map. Again, the default slot of `` is filled by a ``. A data object containing the `feature` and optionally `hoverAttribute` properties is available from the slot-scope. Declare the following vue template and add it to you `WguAppTemplate`: +The following example implements a customized tooltip to render an attribute of a feature, when it is hovered on the map. Again, the default slot of `` is filled by a ``. A data object containing the `feature`, `layer` and optionally `hoverAttribute` properties is available from the slot-scope. Declare the following vue template and add it to you `WguAppTemplate`: ```javascript