-
Notifications
You must be signed in to change notification settings - Fork 11
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
PB 1052: Add 3d tooltips for buildings #1226
base: develop
Are you sure you want to change the base?
Conversation
web-mapviewer
|
Project |
web-mapviewer
|
Branch Review |
feat-PB-1052-add-3d-building-tooltips
|
Run status |
|
Run duration | 04m 20s |
Commit |
|
Committer | Martin Künzi |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
22
|
|
0
|
|
233
|
View all changes introduced in this branch ↗︎ |
5286671
to
62ea13a
Compare
944c71d
to
f315c85
Compare
1ccdcdb
to
da706df
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.
As said in the previous review's comment : we don't do layer specific layout/translation on the viewer side, that's something that has to be in the data, or it isn't.
Please remove all translation keys that aren't used directly by the viewer's code, and let the German text of buildings go through
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Outdated
Show resolved
Hide resolved
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Outdated
Show resolved
Hide resolved
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Outdated
Show resolved
Hide resolved
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Outdated
Show resolved
Hide resolved
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Show resolved
Hide resolved
14490c5
to
76ae789
Compare
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Show resolved
Hide resolved
packages/mapviewer/src/modules/map/components/cesium/CesiumInteractions.vue
Outdated
Show resolved
Hide resolved
e9fff3b
to
041543a
Compare
Issue : When we click on a 3d building, we want to see a tooltip containing some of that building information. Fix : we search the properties of the building to retrieve what we need.
- Added translation when there is no data in a field - Added handling when there is no data in a field - Added on the fly translation for the data in the fields - Removed some logging - we no longer recreate the same feature when someone clicks on the same building.
- Added names to the 3d layers - Added translation for the layer names - Added a check that allow the layers that are not part of the layer config to still have their name displayed
PB-1052: CSS adaptation Drawing infoboxes and building infoboxes now have an horizontal layout
- On hover, we now highlight the border of the buildings in blue - On click, they are now hovered in lime - upgraded to filter to filter out bridges and cableways - corrected some translations and translation keys usage
- Ensured building highlights were made with Cesium only - Replaced a deprecated method - Simplified the hovering interaction method in 3d
With the modularization of the mapviewer, a big rebase was in order. This commit seeks to make the small changes that were needed after the rebase to ensure everything works correctly Also ran the linter.
- We now base our colors for the highlighted buildings on colors from the mapviewer. - Removed refs where there were not needed - We now highlight all buildings under the mouse when clicking.
- We now give an object to the Geoadming3DLayer constructor and de-structure it, in the same manner as other layers in the code. - Removed the translations we do not want to do. ensuring we don't translate something
- We remove the building type from the tooltip as we don't want to display untranslated data to the user - Some linting - forcing new rendering upon moving the mouse on or off features, on when clicking
041543a
to
466d103
Compare
- Set the translations for 3d custom tooltips in their own locale json, separated from the rest of the translations - Added prefixes to know which layers these attributes correspond to, and avoid side effects - I wonder if anyone will read this - Parameters to create the tooltips are now in the cesium config, and the functions do not make special cases for individual layers. - Enforcing re-render when the highlights are supposed to change, removing the impression that the application is frozen.
0538fc5
to
701b3f6
Compare
Test link