-
Notifications
You must be signed in to change notification settings - Fork 15
PB 190 : alter tooltip position behaviour #685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Passing run #1091 ↗︎Details:
Review all test suite changes for PR #685 ↗︎ |
74d7c4b
to
9dbf2be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should rethink the wording here, tooltip
is by definition a small info box that is displayed on mouse hovering (https://en.wikipedia.org/wiki/Tooltip)
@pakb @boecklic @ltkum here is a proposal (feel free to comment improve it 😉 ):
- URL parameter key := featureInfo
- URL parameter values
- no parameter => no
featureInfo
=>"none"
- no value (but parameter present) =>
"default"
"DEFAULT"
=> base on UI size choose between"tooltip"
and `"panel"- `"panel"`` => actual infoBox, panel on the bottom of the map
"tooltip"
=> actual floating tooltip
- no parameter => no
We could also use bPanel
or bottomPanel
instead of panel
, so we could have other panel position in future.
This would also allow use to have window
value for floating window (like in old viewer), or a fullscreen
to have the info in fullscreen mode, but that's just thoughts for future.
Of course based on the acceptance and/or other proposal the code wordings needs to be adapted.
@ltshb, @boecklic, @pakb : this seems like a good proposal to me. featureInfo seems like a good name. |
9dbf2be
to
175e483
Compare
'featureInfo' makes sense to me too 👍🏻, maybe just one thought: we have kind of a "raw" featureInfo i.e. a json response from an API and a rendered featureInfo (aka htmlPopup). Currently we fully rely on the gtmlPopup, I could imagine that we'll simplify this in the future and just find a simple generic way to render directly the json in the popup... |
0e9baac
to
acd4bc7
Compare
@ltkum the current |
740805c
to
dd78c3b
Compare
src/modules/map/components/openlayers/OpenLayersHighlightedFeatures.vue
Outdated
Show resolved
Hide resolved
src/modules/map/components/openlayers/OpenLayersHighlightedFeatures.vue
Outdated
Show resolved
Hide resolved
40dc42a
to
8c598a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you plan to add e2e test in subsequent PR ?
src/modules/map/components/openlayers/OpenLayersHighlightedFeatures.vue
Outdated
Show resolved
Hide resolved
I'll be working on that right now |
73a559a
to
2a92893
Compare
it('Select a few features and shows the tooltip does not appear when featureInfoPosition is not specified', () => { | ||
goToMapViewWithFeatureSelection() | ||
checkFeatures() | ||
checkFeatureInfoPosition(FeatureInfoPositions.NONE) | ||
}) | ||
it('Shows the tooltip in its correct position when set to default (bottom Panel on Phone)', function () { | ||
goToMapViewWithFeatureSelection(FeatureInfoPositions.DEFAULT) | ||
checkFeatures() | ||
checkFeatureInfoPosition(FeatureInfoPositions.DEFAULT) | ||
}) | ||
it('Shows the tooltip on the map when featureInfo is set to tooltip, and handle strange cases', function () { | ||
goToMapViewWithFeatureSelection('TOoLtIp') | ||
checkFeatures() | ||
checkFeatureInfoPosition(FeatureInfoPositions.TOOLTIP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do all the tests in one it()
. it()
are costly in term of cost in cypress cloud and performance
Added a showtooltip parameter which can be set to 'default', 'fixed', 'floating' or 'none'. Added the url parameter to track it. Modified the Infobox and OpenLayersHighlightedFeatures to use this parameter Removed the old 'floatingTooltip' parameter
PB-190: renaming keys to pass the check in setFeatureInfoPosition PB-190: last nomenclature changes PB-190: nomenclature harmonization small nomenclature change small rebase artifacts accidentally made both the combo and the tooltip show use v-show instead of v-if in Infobox module for the infobox-content container
…d using a better computed getter in cesium map for tooltip position
PB-190 : small bugfixes dispatcher fix nomenclature harmonization
5adeb50
to
f571745
Compare
We are introducing a new url parameter : tooltipposition, with its store value in tooltipPosition.
It can take up four different values :
Test link