Skip to content

PB-1636: add parameter to remove UI in embed view#1316

Merged
ltkum merged 2 commits intodevelopfrom
feat-PB-1636-add-button-hiding-param-for-gps
Apr 29, 2025
Merged

PB-1636: add parameter to remove UI in embed view#1316
ltkum merged 2 commits intodevelopfrom
feat-PB-1636-add-button-hiding-param-for-gps

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Apr 29, 2025

  • Issue : We want to remove the UI from the embed view in some cases, so when we are in käze, we can use the sites native UI.
  • Fix : We add an URL parameter whose role it is to remove these buttons.

Test link

- Issue : We want to remove the UI from the embed view in some cases, so when we are in käze, we can use the sites native UI.
- Fix : We add an URL parameter whose role it is to remove these buttons.
@ltkum
Copy link
Contributor Author

ltkum commented Apr 29, 2025

I'll add a test before asking for a review :)

@cypress
Copy link

cypress bot commented Apr 29, 2025

web-mapviewer    Run #5165

Run Properties:  status check passed Passed #5165  •  git commit f83df8c8cc: Merge pull request #1316 from geoadmin/feat-PB-1636-add-button-hiding-param-for-...
Project web-mapviewer
Branch Review develop
Run status status check passed Passed #5165
Run duration 01m 24s
Commit git commit f83df8c8cc: Merge pull request #1316 from geoadmin/feat-PB-1636-add-button-hiding-param-for-...
Committer Martin Künzi
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 48
View all changes introduced in this branch ↗︎

@ltkum ltkum requested a review from pakb April 29, 2025 12:21
Comment on lines +186 to +193

/**
* Flag telling if we should hide the UI elements in the embed viewer. Zoom buttons, 3d
* button and the `view on geoadmin link`
*
* @type Boolean
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might make sense to add in there that this is specific for GeoPlateformSchweiz, and that we shouldn't disclose this param (as it will soon be obsolete and GPS will replace the use of iframe with the new JS API as soon as it's available)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea

@ltkum ltkum force-pushed the feat-PB-1636-add-button-hiding-param-for-gps branch from d6462f5 to dc33ea3 Compare April 29, 2025 13:27
@ltkum ltkum merged commit f83df8c into develop Apr 29, 2025
6 checks passed
@ltkum ltkum deleted the feat-PB-1636-add-button-hiding-param-for-gps branch April 29, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants