Skip to content

Commit

Permalink
Updated documentation with forwarded layer
Browse files Browse the repository at this point in the history
  • Loading branch information
sronveaux committed Nov 17, 2023
1 parent f0dc661 commit a852acf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reusable-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand Down Expand Up @@ -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 `<wgu-map-overlay>` is filled by a `<v-sheet>`. 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 `<wgu-map-overlay>` is filled by a `<v-sheet>`. 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
<template>
Expand Down

0 comments on commit a852acf

Please sign in to comment.