Skip to content

Commit

Permalink
Tweak documentation with respect to code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
fschmenger committed Mar 18, 2024
1 parent 8cb136f commit 4480de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/wegue-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This describes the Wegue application configuration, which is modelled as JSON do
| **mapCenter** | Initial center of the map in map projection | `"mapCenter": [0, 0]` |
| mapProjection | Configuration object for CRS / projection used for the map | see [mapProjection](wegue-configuration?id=mapprojection) |
| mapGeodataDragDop | Configuration object for geodata file drag/drop functionality on the map. Only by setting the config this function will be enabled. | see [mapGeodataDragDop](wegue-configuration?id=mapGeodataDragDop) |
| mapHover | Configuration object to customize the bevahior of hover tooltips on the map. | see [mapHover](wegue-configuration?id=mapHover)
| mapHover | Configuration object containing application wide parameters for hover tooltips on the map. | see [mapHover](wegue-configuration?id=mapHover)
| **modules** | Array of module configuration objects | See [modules](module-configuration) |
| **mapLayers** | Array of map layer configuration objects | See [mapLayers](map-layer-configuration) |
| overviewMap | Configuration object for the overview map. | See [overviewMap](wegue-configuration?id=overviewMap)
Expand Down Expand Up @@ -229,14 +229,14 @@ Below is an example for such a configuration object:
### mapHover
Optional configuration object to customize the behavior of hover tooltips on the map.
Wegue allows for customized tooltips that display one or multiple attributes of a feature when it is hovered over on the map. The optional `mapHover` property in the main Wegue configuration specifies application-wide parameters for tooltip behavior. This property affects only layers with the `hoverable` attribute set to `true` - refer to the [mapLayers](map-layer-configuration) section for more details.
The following properties are supported:
| Property | Meaning | Example |
|--------------------|:---------:|---------|
| delay | Timespan in milliseconds, by which displaying the tooltip is deferred after the mouse pointer rests. Defaults to `150`. | `"delay": 150`
| hideOnMousemove | Hide the tooltip when the mouse cursor is moved. Defaults to `false`. | `"hideOnMousemove": false`
| hoverOverlay | ID of a custom map overlay to use as a default display when a feature of the layer is hovered. Declaration of the `hoverOverlay` property on a mapLayer level takes precedence. For more information on how to implement a map overlay see the [reusable components](reusable-components?id=map-overlay) section. Defaults to Wegue's default tooltip `wgu-hover-tooltip` | `"hoverOverlay": "my-custom-overlay"`
| hoverOverlay | ID of a custom map overlay to use as a default display when a feature of a layer is hovered. Declaration of the `hoverOverlay` property on a mapLayer level takes precedence. For more information on how to implement a map overlay see the [reusable components](reusable-components?id=map-overlay) section. Defaults to Wegue's default tooltip `wgu-hover-tooltip` | `"hoverOverlay": "my-custom-overlay"`
Example:
Expand Down

0 comments on commit 4480de9

Please sign in to comment.